summaryrefslogtreecommitdiffstats
path: root/src/modules/system/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/system/plugin.cpp')
-rw-r--r--src/modules/system/plugin.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/modules/system/plugin.cpp b/src/modules/system/plugin.cpp
index b14b18c0..5891c39c 100644
--- a/src/modules/system/plugin.cpp
+++ b/src/modules/system/plugin.cpp
@@ -32,8 +32,8 @@
#include "kvi_app.h"
#include "kvi_fileutils.h"
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
/*
@doc: easyplugins
@type:
@@ -103,7 +103,7 @@
[/example]
*/
-KviPlugin::KviPlugin(kvi_library_t pLib, const QString& name)
+KviPlugin::KviPlugin(kvi_library_t pLib, const TQString& name)
{
m_Plugin = pLib;
m_szName = name;
@@ -113,7 +113,7 @@ KviPlugin::~KviPlugin()
{
}
-KviPlugin* KviPlugin::load(const QString& szFileName)
+KviPlugin* KviPlugin::load(const TQString& szFileName)
{
kvi_library_t pLibrary = kvi_library_open(szFileName.local8Bit());
if (!pLibrary)
@@ -183,7 +183,7 @@ bool KviPlugin::canunload()
return true;
}
-int KviPlugin::call(const QString& pszFunctionName, int argc, char * argv[], char ** pBuffer)
+int KviPlugin::call(const TQString& pszFunctionName, int argc, char * argv[], char ** pBuffer)
{
int r;
plugin_function function_call;
@@ -199,12 +199,12 @@ int KviPlugin::call(const QString& pszFunctionName, int argc, char * argv[], cha
return r;
}
-QString KviPlugin::name()
+TQString KviPlugin::name()
{
return m_szName;
}
-void KviPlugin::setName(const QString& Name)
+void KviPlugin::setName(const TQString& Name)
{
m_szName = Name;
}
@@ -212,7 +212,7 @@ void KviPlugin::setName(const QString& Name)
KviPluginManager::KviPluginManager()
{
- m_pPluginDict = new KviPointerHashTable<QString,KviPlugin>(5,false);
+ m_pPluginDict = new KviPointerHashTable<TQString,KviPlugin>(5,false);
m_pPluginDict->setAutoDelete(false);
m_bCanUnload = true;
@@ -226,8 +226,8 @@ KviPluginManager::~KviPluginManager()
bool KviPluginManager::pluginCall(KviKvsModuleFunctionCall *c)
{
// /echo $system.call("traffic.dll",about)
- QString szPluginPath; //contains full path and plugin name like "c:/plugin.dll"
- QString szFunctionName;
+ TQString szPluginPath; //contains full path and plugin name like "c:/plugin.dll"
+ TQString szFunctionName;
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("plugin_path",KVS_PT_NONEMPTYSTRING,0,szPluginPath)
@@ -262,7 +262,7 @@ bool KviPluginManager::pluginCall(KviKvsModuleFunctionCall *c)
if (iArgc > 0)
{
int i = 2;
- QString tmp;
+ TQString tmp;
int iSize = 0;
//Calculate buffer size
@@ -313,7 +313,7 @@ bool KviPluginManager::pluginCall(KviKvsModuleFunctionCall *c)
}
if (r > 0)
{
- c->returnValue()->setString(QString::fromLocal8Bit(returnBuffer));
+ c->returnValue()->setString(TQString::fromLocal8Bit(returnBuffer));
}
@@ -339,7 +339,7 @@ bool KviPluginManager::checkUnload()
Always called when system module should be unloaded
Checking here if all small "modules" can be unloaded
*/
- KviPointerHashTableIterator<QString,KviPlugin> it(*m_pPluginDict);
+ KviPointerHashTableIterator<TQString,KviPlugin> it(*m_pPluginDict);
m_bCanUnload = true;
@@ -360,7 +360,7 @@ bool KviPluginManager::checkUnload()
void KviPluginManager::unloadAll()
{
- KviPointerHashTableIterator<QString,KviPlugin> it(*m_pPluginDict);
+ KviPointerHashTableIterator<TQString,KviPlugin> it(*m_pPluginDict);
while(it.current())
{
@@ -369,9 +369,9 @@ void KviPluginManager::unloadAll()
}
}
-bool KviPluginManager::findPlugin(QString& szPath)
+bool KviPluginManager::findPlugin(TQString& szPath)
{
- QString szFileName(KviFileUtils::extractFileName(szPath));
+ TQString szFileName(KviFileUtils::extractFileName(szPath));
// szFileName.detach();
if(KviFileUtils::isAbsolutePath(szPath) && KviFileUtils::fileExists(szPath))
{
@@ -395,16 +395,16 @@ bool KviPluginManager::findPlugin(QString& szPath)
return true;
}
-bool KviPluginManager::isPluginLoaded(const QString& pSingleName)
+bool KviPluginManager::isPluginLoaded(const TQString& pSingleName)
{
- KviPlugin * p = m_pPluginDict->find(pSingleName);
+ KviPlugin * p = m_pPluginDict->tqfind(pSingleName);
if (!p)
return false;
else
return true;
}
-bool KviPluginManager::loadPlugin(const QString& szPluginPath)
+bool KviPluginManager::loadPlugin(const TQString& szPluginPath)
{
if(isPluginLoaded(szPluginPath))
{
@@ -420,8 +420,8 @@ bool KviPluginManager::loadPlugin(const QString& szPluginPath)
return false;
}
-KviPlugin * KviPluginManager::getPlugin(const QString& szPluginPath)
+KviPlugin * KviPluginManager::getPlugin(const TQString& szPluginPath)
{
- KviPlugin * p = m_pPluginDict->find(szPluginPath);
+ KviPlugin * p = m_pPluginDict->tqfind(szPluginPath);
return p;
} \ No newline at end of file