summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kvs/kvi_kvs_moduleinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_moduleinterface.cpp')
-rw-r--r--src/kvirc/kvs/kvi_kvs_moduleinterface.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_moduleinterface.cpp b/src/kvirc/kvs/kvi_kvs_moduleinterface.cpp
index 911eb8c0..c678cef7 100644
--- a/src/kvirc/kvs/kvi_kvs_moduleinterface.cpp
+++ b/src/kvirc/kvs/kvi_kvs_moduleinterface.cpp
@@ -32,13 +32,13 @@
#include "kvi_kvs_treenode_data.h"
#include "kvi_kvs_treenode_datalist.h"
-bool KviKvsModuleCallbackCommandCall::getParameterCode(unsigned int uParamIdx,QString &szParamBuffer)
+bool KviKvsModuleCallbackCommandCall::getParameterCode(unsigned int uParamIdx,TQString &szParamBuffer)
{
if(!m_pParameterDataList)return false;
KviKvsTreeNodeData * d = m_pParameterDataList->item(uParamIdx);
if(!d)return false;
- const QChar * pBegin = d->location();
- const QChar * pEnd = d->endingLocation();
+ const TQChar * pBegin = d->location();
+ const TQChar * pEnd = d->endingLocation();
if(!(pBegin && pEnd))return false;
szParamBuffer.setUnicode(pBegin,pEnd - pBegin);
szParamBuffer.stripWhiteSpace();
@@ -48,11 +48,11 @@ bool KviKvsModuleCallbackCommandCall::getParameterCode(unsigned int uParamIdx,QS
KviKvsModuleInterface::KviKvsModuleInterface()
{
- m_pModuleSimpleCommandExecRoutineDict = new KviPointerHashTable<QString,KviKvsModuleSimpleCommandExecRoutine>(17,false);
+ m_pModuleSimpleCommandExecRoutineDict = new KviPointerHashTable<TQString,KviKvsModuleSimpleCommandExecRoutine>(17,false);
m_pModuleSimpleCommandExecRoutineDict->setAutoDelete(true);
- m_pModuleFunctionExecRoutineDict = new KviPointerHashTable<QString,KviKvsModuleFunctionExecRoutine>(17,false);
+ m_pModuleFunctionExecRoutineDict = new KviPointerHashTable<TQString,KviKvsModuleFunctionExecRoutine>(17,false);
m_pModuleFunctionExecRoutineDict->setAutoDelete(true);
- m_pModuleCallbackCommandExecRoutineDict = new KviPointerHashTable<QString,KviKvsModuleCallbackCommandExecRoutine>(17,false);
+ m_pModuleCallbackCommandExecRoutineDict = new KviPointerHashTable<TQString,KviKvsModuleCallbackCommandExecRoutine>(17,false);
m_pModuleCallbackCommandExecRoutineDict->setAutoDelete(true);
}
@@ -66,41 +66,41 @@ KviKvsModuleInterface::~KviKvsModuleInterface()
#define COMPLETE_WORD_BY_DICT(__word,__list,__type,__dict) \
{ \
- KviPointerHashTableIterator<QString,__type> it(*__dict); \
+ KviPointerHashTableIterator<TQString,__type> it(*__dict); \
int l = __word.length(); \
while(it.current()) \
{ \
- if(KviQString::equalCIN(__word,it.currentKey(),l)) \
- __list->append(new QString(it.currentKey())); \
+ if(KviTQString::equalCIN(__word,it.currentKey(),l)) \
+ __list->append(new TQString(it.currentKey())); \
++it; \
} \
}
-void KviKvsModuleInterface::completeCommand(const QString &szCommandBegin,KviPointerList<QString> * pMatches)
+void KviKvsModuleInterface::completeCommand(const TQString &szCommandBegin,KviPointerList<TQString> * pMatches)
{
COMPLETE_WORD_BY_DICT(szCommandBegin,pMatches,KviKvsModuleSimpleCommandExecRoutine,m_pModuleSimpleCommandExecRoutineDict)
COMPLETE_WORD_BY_DICT(szCommandBegin,pMatches,KviKvsModuleCallbackCommandExecRoutine,m_pModuleCallbackCommandExecRoutineDict)
}
-void KviKvsModuleInterface::completeFunction(const QString &szFunctionBegin,KviPointerList<QString> * pMatches)
+void KviKvsModuleInterface::completeFunction(const TQString &szFunctionBegin,KviPointerList<TQString> * pMatches)
{
COMPLETE_WORD_BY_DICT(szFunctionBegin,pMatches,KviKvsModuleFunctionExecRoutine,m_pModuleFunctionExecRoutineDict)
}
-void KviKvsModuleInterface::kvsRegisterSimpleCommand(const QString &szCommand,KviKvsModuleSimpleCommandExecRoutine r)
+void KviKvsModuleInterface::kvsRegisterSimpleCommand(const TQString &szCommand,KviKvsModuleSimpleCommandExecRoutine r)
{
- m_pModuleSimpleCommandExecRoutineDict->replace(szCommand,new KviKvsModuleSimpleCommandExecRoutine(r));
+ m_pModuleSimpleCommandExecRoutineDict->tqreplace(szCommand,new KviKvsModuleSimpleCommandExecRoutine(r));
}
-void KviKvsModuleInterface::kvsRegisterCallbackCommand(const QString &szCommand,KviKvsModuleCallbackCommandExecRoutine r)
+void KviKvsModuleInterface::kvsRegisterCallbackCommand(const TQString &szCommand,KviKvsModuleCallbackCommandExecRoutine r)
{
- m_pModuleCallbackCommandExecRoutineDict->replace(szCommand,new KviKvsModuleCallbackCommandExecRoutine(r));
+ m_pModuleCallbackCommandExecRoutineDict->tqreplace(szCommand,new KviKvsModuleCallbackCommandExecRoutine(r));
}
-void KviKvsModuleInterface::kvsRegisterFunction(const QString &szFunction,KviKvsModuleFunctionExecRoutine r)
+void KviKvsModuleInterface::kvsRegisterFunction(const TQString &szFunction,KviKvsModuleFunctionExecRoutine r)
{
- m_pModuleFunctionExecRoutineDict->replace(szFunction,new KviKvsModuleFunctionExecRoutine(r));
+ m_pModuleFunctionExecRoutineDict->tqreplace(szFunction,new KviKvsModuleFunctionExecRoutine(r));
}
@@ -161,7 +161,7 @@ static bool default_module_kvs_cmd_unload(KviKvsModuleCommandCall *c)
{
if(c->module()->isLocked())
{
- if(!c->switches()->find('f',"force"))
+ if(!c->switches()->tqfind('f',"force"))
{
c->warning(__tr2qs("Can't unload the module: it has locked itself in memory"));
return true;