summaryrefslogtreecommitdiffstats
path: root/kbfxlib/data/kbfxplasmapluginloader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
commit421b60af92c83b889f8903c2898f2bd07186fcd8 (patch)
treead873a24c9438baed4942fda795430a4c3dc9a9a /kbfxlib/data/kbfxplasmapluginloader.cpp
parent39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff)
downloadkbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz
kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbfxlib/data/kbfxplasmapluginloader.cpp')
-rw-r--r--kbfxlib/data/kbfxplasmapluginloader.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kbfxlib/data/kbfxplasmapluginloader.cpp b/kbfxlib/data/kbfxplasmapluginloader.cpp
index ebc992a..ed2c458 100644
--- a/kbfxlib/data/kbfxplasmapluginloader.cpp
+++ b/kbfxlib/data/kbfxplasmapluginloader.cpp
@@ -22,8 +22,8 @@
#include <config.h>
#include "kbfxplasmapluginloader.h"
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kstandarddirs.h>
#include <kdebug.h>
@@ -39,31 +39,31 @@ void
KbfxPlasmaPluginLoader::init()
{
- QString libprefix = locate ( "lib","libkbfxdata.so" );
+ TQString libprefix = locate ( "lib","libkbfxdata.so" );
libprefix.remove ( "libkbfxdata.so" );
-// QString libprefix = KBFX_LIB_INSTALL_DIR ;
+// TQString libprefix = KBFX_LIB_INSTALL_DIR ;
kdDebug() << "KBFX plugins lib is: " << libprefix << endl;
- QDir * _dir = new QDir ( libprefix+"/kbfx/plugins/" );
- QStringList plugins;
- _dir->setFilter ( QDir::Files );
+ TQDir * _dir = new TQDir ( libprefix+"/kbfx/plugins/" );
+ TQStringList plugins;
+ _dir->setFilter ( TQDir::Files );
_dir->setNameFilter ( "*.so" );
if ( !_dir->exists() )
{
kdDebug() << "Invalid Plugin Prefix: " << libprefix << "/kbfx/plugins/" << endl;
delete _dir;
- return ;//QStringList("No Plugins found: Error in default Paths.Contact Package Manager");
+ return ;//TQStringList("No Plugins found: Error in default Paths.Contact Package Manager");
}
- const QFileInfoList *list = _dir->entryInfoList();
- QFileInfoListIterator it ( *list );
- QFileInfo *fi=0;
+ const TQFileInfoList *list = _dir->entryInfoList();
+ TQFileInfoListIterator it ( *list );
+ TQFileInfo *fi=0;
int _index =0;
while ( ( fi = it.current() ) != 0 )
{
- QString * path = new QString ( libprefix+"/kbfx/plugins/"+fi->fileName() );
- QLibrary * _l = new QLibrary ( *path );
+ TQString * path = new TQString ( libprefix+"/kbfx/plugins/"+fi->fileName() );
+ TQLibrary * _l = new TQLibrary ( *path );
- typedef QString ( *getName ) ();
+ typedef TQString ( *getName ) ();
getName nameFunc;
nameFunc = ( getName ) _l->resolve ( "name" );
if ( nameFunc )
@@ -95,7 +95,7 @@ KbfxPlasmaPluginLoader::~KbfxPlasmaPluginLoader()
}
KbfxDataStack *
-KbfxPlasmaPluginLoader::getView ( QString name )
+KbfxPlasmaPluginLoader::getView ( TQString name )
{
PluginMap::Iterator it;
for ( it = pluginMap().begin(); it != pluginMap().end(); ++it )
@@ -113,7 +113,7 @@ KbfxPlasmaPluginLoader::getView ( QString name )
}
KbfxDataGroup *
-KbfxPlasmaPluginLoader::search ( QString pname,QString keyword )
+KbfxPlasmaPluginLoader::search ( TQString pname,TQString keyword )
{
if ( pname == NULL )
return NULL;
@@ -142,12 +142,12 @@ KbfxPlasmaPluginLoader::pluginMap()
-QStringList
+TQStringList
KbfxPlasmaPluginLoader::scanPlugins()
{
init();
- QStringList plugins;
+ TQStringList plugins;
PluginMap::Iterator it;
for ( it = pluginMap().begin(); it != pluginMap().end();++it )