KVIrc
4.9.2
DeveloperAPIs
|
#include <KviKvsScriptAddonManager.h>
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 |
KviKvsScript * | m_pConfigureCallback |
KviKvsScript * | m_pDescriptionScript |
KviKvsScript * | m_pHelpCallback |
KviKvsScript * | m_pUninstallCallback |
KviKvsScript * | m_pVisibleNameScript |
QString | m_szDescription |
QString | m_szIconId |
QString | m_szName |
QString | m_szVersion |
QString | m_szVisibleName |
Friends | |
class | KviKvsScriptAddonManager |
|
protected |
References m_pConfigureCallback, m_pDescriptionScript, m_pHelpCallback, m_pUninstallCallback, and m_pVisibleNameScript.
|
protected |
References allocateScripts(), m_pConfigureCallback, and m_pHelpCallback.
KviKvsScriptAddon::KviKvsScriptAddon | ( | const KviKvsScriptAddon & | a | ) |
KviKvsScriptAddon::~KviKvsScriptAddon | ( | ) |
References m_pConfigureCallback, m_pDescriptionScript, m_pHelpCallback, m_pUninstallCallback, and m_pVisibleNameScript.
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().
|
protected |
References KviKvsScript::InstructionList, KviKvsScript::KviKvsScript(), m_pDescriptionScript, m_pUninstallCallback, m_pVisibleNameScript, m_szName, and KviKvsScript::Parameter.
Referenced by KviKvsScriptAddon(), and load().
const QString & KviKvsScriptAddon::configureCallbackCode | ( | ) |
References KviKvsScript::code(), KviQString::Empty, and m_pConfigureCallback.
Referenced by addon_kvs_cmd_configure(), AddonManagementDialog::configureScript(), AddonManagementDialog::currentChanged(), and save().
const QString & KviKvsScriptAddon::description | ( | ) |
References KviKvsScript::code(), g_pActiveWindow, m_pDescriptionScript, m_szDescription, and KviKvsScript::run().
Referenced by AddonListViewItem::AddonListViewItem().
const QString & KviKvsScriptAddon::descriptionCode | ( | ) |
References KviKvsScript::code(), and m_pDescriptionScript.
Referenced by save().
void KviKvsScriptAddon::executeConfigureCallback | ( | KviWindow * | pWnd | ) |
References m_pConfigureCallback, and KviKvsScript::run().
Referenced by addon_kvs_cmd_configure(), and AddonManagementDialog::configureScript().
void KviKvsScriptAddon::executeHelpCallback | ( | KviWindow * | pWnd | ) |
References m_pHelpCallback, and KviKvsScript::run().
Referenced by addon_kvs_cmd_help(), and AddonManagementDialog::showScriptHelp().
|
protected |
References m_pUninstallCallback, and KviKvsScript::run().
Referenced by KviKvsScriptAddonManager::unregisterAddon().
const QString & KviKvsScriptAddon::helpCallbackCode | ( | ) |
References KviKvsScript::code(), KviQString::Empty, and m_pHelpCallback.
Referenced by addon_kvs_cmd_help(), AddonManagementDialog::currentChanged(), save(), and AddonManagementDialog::showScriptHelp().
QPixmap * KviKvsScriptAddon::icon | ( | ) |
References g_pIconManager, KviIconManager::getBigIcon(), KVI_BIGICON_KVS, and m_szIconId.
Referenced by AddonListViewItem::AddonListViewItem().
|
inline |
|
inline |
Referenced by KviKvsScriptAddonManager::unregisterAddon().
|
protected |
|
inline |
Referenced by AddonListViewItem::AddonListViewItem(), and AddonManagementDialog::uninstallScript().
|
protected |
void KviKvsScriptAddon::setConfigureCallback | ( | const QString & | szConfigureCallbackCode | ) |
References KviKvsScript::InstructionList, KviKvsScript::KviKvsScript(), m_pConfigureCallback, and m_szName.
Referenced by addon_kvs_cmd_setconfigurecallback(), KviKvsScriptAddon(), and load().
void KviKvsScriptAddon::setHelpCallback | ( | const QString & | szHelpCallbackCode | ) |
References KviKvsScript::InstructionList, KviKvsScript::KviKvsScript(), m_pHelpCallback, and m_szName.
Referenced by addon_kvs_cmd_sethelpcallback(), KviKvsScriptAddon(), and load().
const QString & KviKvsScriptAddon::uninstallCallbackCode | ( | ) |
References KviKvsScript::code(), and m_pUninstallCallback.
Referenced by save().
|
inline |
const QString & KviKvsScriptAddon::visibleName | ( | ) |
References KviKvsScript::code(), g_pActiveWindow, m_pVisibleNameScript, m_szVisibleName, and KviKvsScript::run().
Referenced by AddonListViewItem::AddonListViewItem(), and AddonManagementDialog::uninstallScript().
const QString & KviKvsScriptAddon::visibleNameCode | ( | ) |
References KviKvsScript::code(), and m_pVisibleNameScript.
Referenced by save().
|
friend |
|
protected |
Referenced by addInstalledFile(), load(), and save().
|
protected |
|
protected |
Referenced by allocateScripts(), description(), descriptionCode(), KviKvsScriptAddon(), and ~KviKvsScriptAddon().
|
protected |
Referenced by executeHelpCallback(), helpCallbackCode(), KviKvsScriptAddon(), setHelpCallback(), and ~KviKvsScriptAddon().
|
protected |
Referenced by allocateScripts(), executeUninstallCallback(), KviKvsScriptAddon(), uninstallCallbackCode(), and ~KviKvsScriptAddon().
|
protected |
Referenced by allocateScripts(), KviKvsScriptAddon(), visibleName(), visibleNameCode(), and ~KviKvsScriptAddon().
|
protected |
Referenced by description().
|
protected |
Referenced by icon(), KviKvsScriptAddon(), load(), and save().
|
protected |
Referenced by allocateScripts(), KviKvsScriptAddon(), load(), save(), setConfigureCallback(), and setHelpCallback().
|
protected |
Referenced by KviKvsScriptAddon(), load(), and save().
|
protected |
Referenced by visibleName().