summaryrefslogtreecommitdiffstats
path: root/kpilot/kpilot/main-test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/kpilot/main-test.cc')
-rw-r--r--kpilot/kpilot/main-test.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/kpilot/kpilot/main-test.cc b/kpilot/kpilot/main-test.cc
index ad57bdab..f9c9fe80 100644
--- a/kpilot/kpilot/main-test.cc
+++ b/kpilot/kpilot/main-test.cc
@@ -36,9 +36,9 @@
#include <time.h>
#include <iostream>
-#include <qpushbutton.h>
-#include <qhbox.h>
-#include <qtimer.h>
+#include <tqpushbutton.h>
+#include <tqhbox.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <klocale.h>
@@ -137,32 +137,32 @@ void connectStack( KPilotLink *l, ActionQueue *a, bool loop = false )
if (l && a)
{
- QObject::connect(a, SIGNAL(syncDone(SyncAction *)),
- l, SLOT(close()));
+ TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)),
+ l, TQT_SLOT(close()));
if (!loop)
{
- QObject::connect(a, SIGNAL(syncDone(SyncAction *)),
- kapp, SLOT(quit()));
+ TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)),
+ kapp, TQT_SLOT(quit()));
}
else
{
- QObject::connect(a, SIGNAL(syncDone(SyncAction *)),
- l, SLOT(reset()));
+ TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)),
+ l, TQT_SLOT(reset()));
}
- QObject::connect(l, SIGNAL(deviceReady(KPilotLink*)),
- a, SLOT(execConduit()));
+ TQObject::connect(l, TQT_SIGNAL(deviceReady(KPilotLink*)),
+ a, TQT_SLOT(execConduit()));
}
}
-int exec(const QString &device, const QString &what, KCmdLineArgs *p)
+int exec(const TQString &device, const TQString &what, KCmdLineArgs *p)
{
FUNCTIONSETUP;
// get --exec-conduit value
if (what.isEmpty()) return 1;
- QStringList l;
+ TQStringList l;
l.append(what);
SyncAction::SyncMode::Mode syncMode = SyncAction::SyncMode::eHotSync;
@@ -181,7 +181,7 @@ int exec(const QString &device, const QString &what, KCmdLineArgs *p)
return kapp->exec();
}
-int backup(const QString &device, const QString &what, KCmdLineArgs *p)
+int backup(const TQString &device, const TQString &what, KCmdLineArgs *p)
{
FUNCTIONSETUP;
KPilotLink *link = createLink( p->isSet("local") );
@@ -196,7 +196,7 @@ int backup(const QString &device, const QString &what, KCmdLineArgs *p)
return kapp->exec();
}
-int restore(const QString &device, const QString &what, KCmdLineArgs *p)
+int restore(const TQString &device, const TQString &what, KCmdLineArgs *p)
{
FUNCTIONSETUP;
KPilotLink *link = createLink( p->isSet("local") );
@@ -211,7 +211,7 @@ int restore(const QString &device, const QString &what, KCmdLineArgs *p)
return kapp->exec();
}
-int listDB(const QString &device, KCmdLineArgs *p)
+int listDB(const TQString &device, KCmdLineArgs *p)
{
FUNCTIONSETUP;
KPilotLink *link = createLink( p->isSet("local") );
@@ -224,7 +224,7 @@ int listDB(const QString &device, KCmdLineArgs *p)
return kapp->exec();
}
-int check( const QString &device, const QString &what, KCmdLineArgs *p )
+int check( const TQString &device, const TQString &what, KCmdLineArgs *p )
{
FUNCTIONSETUP;
@@ -265,7 +265,7 @@ void listConduits()
// sure that nothing gets listed in both.
//
//
- QValueListIterator < KServiceOffer > availList(offers.begin());
+ TQValueListIterator < KServiceOffer > availList(offers.begin());
while (availList != offers.end())
{
KSharedPtr < KService > o = (*availList).service();
@@ -283,7 +283,7 @@ void listConduits()
}
}
-int show( const QString &what )
+int show( const TQString &what )
{
FUNCTIONSETUP;
@@ -377,7 +377,7 @@ int main(int argc, char **argv)
Pilot::setupPilotCodec(KPilotSettings::encoding());
- QString device( "/dev/pilot" );
+ TQString device( "/dev/pilot" );
if ( p->isSet("port") )
{