summaryrefslogtreecommitdiffstats
path: root/kmobile/testlibkmobile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmobile/testlibkmobile.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmobile/testlibkmobile.cpp')
-rw-r--r--kmobile/testlibkmobile.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmobile/testlibkmobile.cpp b/kmobile/testlibkmobile.cpp
index f89d3871f..e8ff85580 100644
--- a/kmobile/testlibkmobile.cpp
+++ b/kmobile/testlibkmobile.cpp
@@ -5,8 +5,8 @@
#include <kapplication.h>
#include <dcopclient.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
#include <kdebug.h>
int main(int argc, char **argv)
@@ -19,22 +19,22 @@ int main(int argc, char **argv)
DCOPClient *client = app.dcopClient();
client->attach();
- QByteArray data;
- QDataStream ds(data, IO_WriteOnly);
-// ds << QString("a");
+ TQByteArray data;
+ TQDataStream ds(data, IO_WriteOnly);
+// ds << TQString("a");
- QCString replyType;
- QByteArray replyData;
+ TQCString replyType;
+ TQByteArray replyData;
ok = client->call("kmobile", "kmobileIface", "deviceNames()", data, replyType, replyData);
- QDataStream reply(replyData, IO_ReadOnly);
- QStringList deviceNames;
+ TQDataStream reply(replyData, IO_ReadOnly);
+ TQStringList deviceNames;
reply >> deviceNames;
- kdDebug() << QString("%1\n").arg(ok?"Ok":"Failure");
- kdDebug() << QString("Number of currently registered drivers: %1\n").arg(deviceNames.count());
+ kdDebug() << TQString("%1\n").arg(ok?"Ok":"Failure");
+ kdDebug() << TQString("Number of currently registered drivers: %1\n").arg(deviceNames.count());
for (int i=0; i<deviceNames.count(); i++)
- kdDebug() << QString("Device %1: %2\n").arg(i+1).arg(deviceNames[i]);
+ kdDebug() << TQString("Device %1: %2\n").arg(i+1).arg(deviceNames[i]);
// return app.exec();
}