diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /dcoprss/client.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcoprss/client.cpp')
-rw-r--r-- | dcoprss/client.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/dcoprss/client.cpp b/dcoprss/client.cpp index b74894de..f84fc0f9 100644 --- a/dcoprss/client.cpp +++ b/dcoprss/client.cpp @@ -2,10 +2,10 @@ #include <kapplication.h> #include <dcopclient.h> #include <dcopref.h> -#include <qdatastream.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qcstring.h> +#include <tqdatastream.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqcstring.h> #include <kdebug.h> #include <stdlib.h> /* @@ -19,13 +19,13 @@ public: // get our DCOP client and attach so that we may use it DCOPClient *client = app->dcopClient(); client->attach(); - QString error; - QCString appID; + TQString error; + TQCString appID; kdDebug() << "Looking for rss service..." << endl; if (!client->isApplicationRegistered("rssservice")) { kdDebug() << "Could not find service so I am starting it..." << endl; - if(KApplication::startServiceByName("rssservice",QStringList(), &error, &appID )) + if(KApplication::startServiceByName("rssservice",TQStringList(), &error, &appID )) { kdDebug() << "Starting rssservice failed with message: " << error << endl; exit(0); @@ -39,14 +39,14 @@ public: else kdDebug() << "attached dcop signals..." << endl; - QString url("http://freshmeat.net/backend/fm.rdf"); + TQString url("http://freshmeat.net/backend/fm.rdf"); DCOPRef m_rssservice("rssservice","RSSService"); - m_rssservice.call("load(QString)", url); - QStringList returnList = m_rssservice.call("list()"); - DCOPRef doc = m_rssservice.call("document(QString)", returnList[0]); - QString title = doc.call("title()"); - QString link = doc.call("link()"); - QString description = doc.call("description()"); + m_rssservice.call("load(TQString)", url); + TQStringList returnList = m_rssservice.call("list()"); + DCOPRef doc = m_rssservice.call("document(TQString)", returnList[0]); + TQString title = doc.call("title()"); + TQString link = doc.call("link()"); + TQString description = doc.call("description()"); kdDebug() << title << endl; kdDebug() << link << endl; kdDebug() << description << endl; @@ -55,9 +55,9 @@ public: k_dcop: virtual void refresh(DCOPRef doc) { - QString title = doc.call("title()"); - QString link = doc.call("link()"); - QString description = doc.call("description()"); + TQString title = doc.call("title()"); + TQString link = doc.call("link()"); + TQString description = doc.call("description()"); kdDebug() << title << endl; kdDebug() << link << endl; kdDebug() << description << endl; |