33 template <
typename Key,
typename T>
36 #ifdef COMPILE_CRYPT_SUPPORT
38 class KviCryptEngineDescription;
39 class KviCryptEngineManager;
42 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
43 #if defined(COMPILE_ON_MINGW)
44 #define KVIMODULEEXPORT extern "C" __declspec(dllexport) __attribute__((visibility("default")))
46 #define KVIMODULEEXPORT extern "C" __declspec(dllexport)
48 #define KVIMODULEEXPORTDATA KVIMODULEEXPORT
49 #define KVIMODULEEXPORTFUNC KVIMODULEEXPORT
51 #define KVIMODULEEXPORT extern "C" __attribute__((visibility("default")))
52 #define KVIMODULEEXPORTDATA __attribute__((visibility("default")))
53 #define KVIMODULEEXPORTFUNC KVIMODULEEXPORT
114 #define KVIRC_MODULE_STRUCTURE_SYMBOL "KVIrc_module_info"
116 #define KVIRC_MODULE(_szModuleName, _szVersion, _szCopyright, _szDescription, _init_routine, _can_unload, _ctrl_routine, _cleanup_routine, _szModuleContext) \
118 KVIMODULEEXPORTDATA KviModuleInfo KVIrc_module_info = { \
135 friend class KviUserParser;
151 void updateAccessTime();
152 unsigned int secondsSinceLastAccess();
156 const QString &
name() {
return m_szName; };
158 const QString &
filename() {
return m_szFileName; };
159 QLibrary *
handle() {
return m_pLibrary; };
186 void * getSymbol(
const char * symname);
187 bool ctrl(
const char * operation,
void * param);
189 void getDefaultConfigFileName(QString &
szBuffer);
191 static void unregisterMetaObject(
const char * metaObjName);
193 #ifdef COMPILE_CRYPT_SUPPORT
194 void registerCryptEngine(KviCryptEngineDescription *
d);
195 void unregisterCryptEngine(
const char * szName);
196 void unregisterCryptEngines();
202 void unregisterAllExtensions();
205 #endif //_KVI_MODULE_H_
const char * szModuleName
Definition: KviModule.h:66
unsigned int m_uLock
Definition: KviModule.h:147
KviModuleSystemRoutine can_unload
Definition: KviModule.h:88
Definition: KviCString.h:105
#define KVIRC_API
Definition: kvi_settings.h:128
const QString & name()
Definition: KviModule.h:156
KviModuleExtension *(* KviModuleExtensionAllocRoutine)(KviModuleExtensionAllocStruct *)
Definition: KviModuleExtension.h:49
QLibrary * m_pLibrary
Definition: KviModule.h:146
const char * szModuleContext
Definition: KviModule.h:67
QString m_szName
Definition: KviModule.h:143
KviModuleInfo * m_pModuleInfo
Definition: KviModule.h:145
QString m_szFileName
Definition: KviModule.h:144
QLibrary * handle()
Definition: KviModule.h:159
const char * szCopyright
Definition: KviModule.h:69
bool(* KviModuleCtrlRoutine)(KviModule *, const char *, void *)
Definition: KviModule.h:61
KviModuleSystemRoutine init_routine
Definition: KviModule.h:74
void unlock()
Definition: KviModule.h:179
Definition: KviModuleManager.h:36
struct _KviModuleInfo KviModuleInfo
const char * szVersion
Definition: KviModule.h:68
char s d
Definition: KviIrcNumericCodes.h:391
const QString & filename()
Definition: KviModule.h:158
Definition: KviCryptEngine.h:54
bool isLocked()
Definition: KviModule.h:184
long int m_lastAccessTime
Definition: KviModule.h:148
#define r
Definition: detector.cpp:82
Definition: KviModuleExtension.h:51
Definition: KviModule.h:131
const char * szDescription
Definition: KviModule.h:70
KviModuleInfo * moduleInfo()
Definition: KviModule.h:160
QString name()
Definition: KviRuntimeInfo.cpp:655
char szBuffer[4096]
Definition: winamp.cpp:77
A fast pointer hash table implementation.
Definition: KviPointerHashTable.h:391
This file contains compile time settings.
Definition: KviKvsModuleInterface.h:134
bool(* KviModuleSystemRoutine)(KviModule *)
Definition: KviModule.h:60
void lock()
Definition: KviModule.h:178
KviModuleSystemRoutine cleanup_routine
Definition: KviModule.h:102
KviModuleCtrlRoutine ctrl_routine
Definition: KviModule.h:95
Definition: KviModule.h:63
const char * szKVIrcVersion
Definition: KviModule.h:65