summaryrefslogtreecommitdiffstats
path: root/plugins/strigi/kbfxstrigiplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/strigi/kbfxstrigiplugin.cpp')
-rw-r--r--plugins/strigi/kbfxstrigiplugin.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/strigi/kbfxstrigiplugin.cpp b/plugins/strigi/kbfxstrigiplugin.cpp
index dd9471b..8039fa4 100644
--- a/plugins/strigi/kbfxstrigiplugin.cpp
+++ b/plugins/strigi/kbfxstrigiplugin.cpp
@@ -23,8 +23,8 @@
#include <kservice.h>
#include <kservicegroup.h>
#include <kdebug.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kurl.h>
#include "kbfxstrigiplugin.h"
@@ -107,16 +107,16 @@ view ()
}
-QString
+TQString
name ()
{
- return QString ( "Strigi" );
+ return TQString ( "Strigi" );
}
-QString
+TQString
type ()
{
- return QString ( "Stub Type" );
+ return TQString ( "Stub Type" );
}
@@ -129,13 +129,13 @@ id ()
KbfxDataGroup *
-search ( QString _keyword )
+search ( TQString _keyword )
{
KbfxDataGroup *datagroup = new KbfxDataGroup ();
datagroup->setName ( "Strigi" );
- QString socketpath = QDir::homeDirPath () + "/.strigi/socket";
+ TQString socketpath = TQDir::homeDirPath () + "/.strigi/socket";
startDaemon ();
kdDebug() << socketpath << endl;
AsyncSocketClient socket;
@@ -165,13 +165,13 @@ search ( QString _keyword )
jstreams::IndexedDocument hit = hits.hits[i];
KbfxDataSource *data = new KbfxDataSource ();
- QString name;
+ TQString name;
std::map < std::string, std::string >::const_iterator it =
- hits.hits[i].properties.find ( "title" );
+ hits.hits[i].properties.tqfind ( "title" );
- QString filename ( hits.hits[i].uri.c_str () );
+ TQString filename ( hits.hits[i].uri.c_str () );
- if ( filename.contains ( ".tar." ) > 0 )
+ if ( filename.tqcontains ( ".tar." ) > 0 )
{
filename = "tar:" + filename;
kdDebug() << filename << endl;
@@ -183,7 +183,7 @@ search ( QString _keyword )
}
else
{
- uint pos = hits.hits[i].uri.rfind ( '/' );
+ uint pos = hits.hits[i].uri.rtqfind ( '/' );
if ( pos == std::string::npos )
{
name = hits.hits[i].uri;
@@ -203,9 +203,9 @@ search ( QString _keyword )
- QString iconname =
+ TQString iconname =
KMimeType::mimeType ( hits.hits[i].mimetype.c_str () )->
- icon ( QString::null, 0 );
+ icon ( TQString(), 0 );
data->setIconPath ( iconname );
datagroup->addItem ( data );