KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
KviKvsScriptAddon Class Reference

#include <KviKvsScriptAddonManager.h>

+ Inheritance diagram for KviKvsScriptAddon:

Public Member Functions

void addInstalledFile (const QString &szFileName)
 
const QString & configureCallbackCode ()
 
const QString & description ()
 
const QString & descriptionCode ()
 
void executeConfigureCallback (KviWindow *pWnd)
 
void executeHelpCallback (KviWindow *pWnd)
 
const QString & helpCallbackCode ()
 
QPixmap * icon ()
 
const QString & iconId ()
 
const QStringList & installedFiles () const
 
 KviKvsScriptAddon (const KviKvsScriptAddon &a)
 
const QString & name () const
 
void setConfigureCallback (const QString &szConfigureCallbackCode)
 
void setHelpCallback (const QString &szHelpCallbackCode)
 
const QString & uninstallCallbackCode ()
 
const QString & version () const
 
const QString & visibleName ()
 
const QString & visibleNameCode ()
 
 ~KviKvsScriptAddon ()
 

Protected Member Functions

void allocateScripts (const QString &sVisibleNameCode, const QString &szDescriptionCode, const QString &szUninstallCallbackCode)
 
void executeUninstallCallback (KviWindow *pWnd)
 
 KviKvsScriptAddon ()
 
 KviKvsScriptAddon (const QString &szName, const QString &szVersion, const QString &szVisibleNameCode, const QString &szDescriptionCode, const QString &szUninstallCallbackCode, const QString &szIconId)
 
bool load (KviConfigurationFile *cfg, const QString &szName)
 
void save (KviConfigurationFile *cfg)
 

Protected Attributes

QStringList m_lInstalledFiles
 
KviKvsScriptm_pConfigureCallback
 
KviKvsScriptm_pDescriptionScript
 
KviKvsScriptm_pHelpCallback
 
KviKvsScriptm_pUninstallCallback
 
KviKvsScriptm_pVisibleNameScript
 
QString m_szDescription
 
QString m_szIconId
 
QString m_szName
 
QString m_szVersion
 
QString m_szVisibleName
 

Friends

class KviKvsScriptAddonManager
 

Constructor & Destructor Documentation

KviKvsScriptAddon::KviKvsScriptAddon ( )
protected
KviKvsScriptAddon::KviKvsScriptAddon ( const QString &  szName,
const QString &  szVersion,
const QString &  szVisibleNameCode,
const QString &  szDescriptionCode,
const QString &  szUninstallCallbackCode,
const QString &  szIconId 
)
protected
KviKvsScriptAddon::KviKvsScriptAddon ( const KviKvsScriptAddon a)
KviKvsScriptAddon::~KviKvsScriptAddon ( )

Member Function Documentation

void KviKvsScriptAddon::addInstalledFile ( const QString &  szFileName)

Register a file to be uninstalled after the uninstall callback. The file name MUST be relative to the local kvirc directory.

References m_lInstalledFiles.

Referenced by addon_kvs_cmd_installfiles().

void KviKvsScriptAddon::allocateScripts ( const QString &  sVisibleNameCode,
const QString &  szDescriptionCode,
const QString &  szUninstallCallbackCode 
)
protected
const QString & KviKvsScriptAddon::configureCallbackCode ( )
const QString & KviKvsScriptAddon::description ( )
const QString & KviKvsScriptAddon::descriptionCode ( )

References KviKvsScript::code(), and m_pDescriptionScript.

Referenced by save().

void KviKvsScriptAddon::executeConfigureCallback ( KviWindow pWnd)
void KviKvsScriptAddon::executeHelpCallback ( KviWindow pWnd)
void KviKvsScriptAddon::executeUninstallCallback ( KviWindow pWnd)
protected
const QString & KviKvsScriptAddon::helpCallbackCode ( )
QPixmap * KviKvsScriptAddon::icon ( )
const QString& KviKvsScriptAddon::iconId ( )
inline
const QStringList& KviKvsScriptAddon::installedFiles ( ) const
inline
bool KviKvsScriptAddon::load ( KviConfigurationFile cfg,
const QString &  szName 
)
protected
const QString& KviKvsScriptAddon::name ( ) const
inline
void KviKvsScriptAddon::save ( KviConfigurationFile cfg)
protected
void KviKvsScriptAddon::setConfigureCallback ( const QString &  szConfigureCallbackCode)
void KviKvsScriptAddon::setHelpCallback ( const QString &  szHelpCallbackCode)
const QString & KviKvsScriptAddon::uninstallCallbackCode ( )

References KviKvsScript::code(), and m_pUninstallCallback.

Referenced by save().

const QString& KviKvsScriptAddon::version ( ) const
inline
const QString & KviKvsScriptAddon::visibleName ( )
const QString & KviKvsScriptAddon::visibleNameCode ( )

References KviKvsScript::code(), and m_pVisibleNameScript.

Referenced by save().

Friends And Related Function Documentation

friend class KviKvsScriptAddonManager
friend

Member Data Documentation

QStringList KviKvsScriptAddon::m_lInstalledFiles
protected

Referenced by addInstalledFile(), load(), and save().

KviKvsScript* KviKvsScriptAddon::m_pConfigureCallback
protected
KviKvsScript* KviKvsScriptAddon::m_pDescriptionScript
protected
KviKvsScript* KviKvsScriptAddon::m_pHelpCallback
protected
KviKvsScript* KviKvsScriptAddon::m_pUninstallCallback
protected
KviKvsScript* KviKvsScriptAddon::m_pVisibleNameScript
protected
QString KviKvsScriptAddon::m_szDescription
protected

Referenced by description().

QString KviKvsScriptAddon::m_szIconId
protected

Referenced by icon(), KviKvsScriptAddon(), load(), and save().

QString KviKvsScriptAddon::m_szName
protected
QString KviKvsScriptAddon::m_szVersion
protected

Referenced by KviKvsScriptAddon(), load(), and save().

QString KviKvsScriptAddon::m_szVisibleName
protected

Referenced by visibleName().


The documentation for this class was generated from the following files: