1 #ifndef _KVI_KVS_SCRIPTADDONMANAGER_H_
2 #define _KVI_KVS_SCRIPTADDONMANAGER_H_
32 #include <QStringList>
46 const QString & szName,
47 const QString & szVersion,
48 const QString & szVisibleNameCode,
49 const QString & szDescriptionCode,
50 const QString & szUninstallCallbackCode,
51 const QString & szIconId);
73 const QString &
name()
const {
return m_szName; };
74 const QString &
version()
const {
return m_szVersion; };
75 const QString & visibleName();
76 const QString & description();
77 const QString & visibleNameCode();
78 const QString & descriptionCode();
79 const QString & uninstallCallbackCode();
80 const QString & configureCallbackCode();
81 const QString & helpCallbackCode();
82 const QString &
iconId() {
return m_szIconId; };
88 void addInstalledFile(
const QString & szFileName);
89 void setConfigureCallback(
const QString & szConfigureCallbackCode);
90 void setHelpCallback(
const QString & szHelpCallbackCode);
91 void executeConfigureCallback(
KviWindow * pWnd);
92 void executeHelpCallback(
KviWindow * pWnd);
97 void executeUninstallCallback(
KviWindow * pWnd);
99 void allocateScripts(
const QString & sVisibleNameCode,
const QString & szDescriptionCode,
const QString & szUninstallCallbackCode);
132 bool unregisterAddon(
const QString & szName,
KviWindow * pWnd,
bool bExecuteUninstallCallback =
true,
bool bUninstallFiles =
true);
136 void load(
const QString & szFileName);
137 void save(
const QString & szFileName);
QString m_szVisibleName
Definition: KviKvsScriptAddonManager.h:68
KviKvsScript * m_pHelpCallback
Definition: KviKvsScriptAddonManager.h:66
Definition: KviHeapObject.h:124
KviKvsScript * m_pConfigureCallback
Definition: KviKvsScriptAddonManager.h:65
#define KVIRC_API
Definition: kvi_settings.h:128
QString m_szVersion
Definition: KviKvsScriptAddonManager.h:61
QString m_szName
Definition: KviKvsScriptAddonManager.h:60
#define a
Definition: detector.cpp:91
QStringList m_lInstalledFiles
Definition: KviKvsScriptAddonManager.h:70
The KVIrc Script class.
Definition: KviKvsScript.h:59
Definition: KviConfigurationFile.h:48
static KviKvsScriptAddonManager * instance()
Definition: KviKvsScriptAddonManager.h:126
KviKvsScript * m_pVisibleNameScript
Definition: KviKvsScriptAddonManager.h:62
KviKvsScript * m_pDescriptionScript
Definition: KviKvsScriptAddonManager.h:63
QString m_szFileName
Definition: KviKvsScriptAddonManager.h:122
char s d
Definition: KviIrcNumericCodes.h:391
void done()
Definition: KviKvs.cpp:50
const QString & name() const
Definition: KviKvsScriptAddonManager.h:73
const QStringList & installedFiles() const
Definition: KviKvsScriptAddonManager.h:72
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
const QString & iconId()
Definition: KviKvsScriptAddonManager.h:82
QString szVersion
Definition: KviKvsScriptAddonManager.h:106
QString szIconId
Definition: KviKvsScriptAddonManager.h:110
const QString & version() const
Definition: KviKvsScriptAddonManager.h:74
Definition: KviKvsScriptAddonManager.h:113
QString szVisibleNameScript
Definition: KviKvsScriptAddonManager.h:107
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Definition: KviKvsScriptAddonManager.h:102
Definition: KviKvsScriptAddonManager.h:39
QString szUninstallCallbackScript
Definition: KviKvsScriptAddonManager.h:109
QString szDescriptionScript
Definition: KviKvsScriptAddonManager.h:108
QString m_szDescription
Definition: KviKvsScriptAddonManager.h:67
int init()
Definition: winamp.cpp:118
This file contains compile time settings.
bool m_bLoaded
Definition: KviKvsScriptAddonManager.h:123
QString m_szIconId
Definition: KviKvsScriptAddonManager.h:69
KviKvsScript * m_pUninstallCallback
Definition: KviKvsScriptAddonManager.h:64
Helper functions for the QString class.
QString szName
Definition: KviKvsScriptAddonManager.h:105
KviPointerHashTable< QString, KviKvsScriptAddon > * m_pAddonDict
Definition: KviKvsScriptAddonManager.h:124
static KviKvsScriptAddonManager * m_pInstance
Definition: KviKvsScriptAddonManager.h:120
void load(const QString &szFileName)
Definition: KviKvsScriptAddonManager.cpp:297