summaryrefslogtreecommitdiffstats
path: root/kandy/src/commandscheduler.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 /kandy/src/commandscheduler.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 'kandy/src/commandscheduler.cpp')
-rw-r--r--kandy/src/commandscheduler.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kandy/src/commandscheduler.cpp b/kandy/src/commandscheduler.cpp
index 23544e8a2..bef11cac8 100644
--- a/kandy/src/commandscheduler.cpp
+++ b/kandy/src/commandscheduler.cpp
@@ -30,13 +30,13 @@
#include "commandscheduler.h"
#include "commandscheduler.moc"
-CommandScheduler::CommandScheduler(Modem *modem,QObject *parent,
+CommandScheduler::CommandScheduler(Modem *modem,TQObject *parent,
const char *name) :
- QObject(parent,name),
+ TQObject(parent,name),
mModem(modem)
{
- connect(mModem,SIGNAL(gotLine(const char *)),
- SLOT(processOutput(const char *)));
+ connect(mModem,TQT_SIGNAL(gotLine(const char *)),
+ TQT_SLOT(processOutput(const char *)));
}
void CommandScheduler::execute(ATCommand *command)
@@ -52,7 +52,7 @@ void CommandScheduler::execute(ATCommand *command)
if (mCommandQueue.count() == 1) sendCommand(command->cmd());
}
-void CommandScheduler::execute(const QString &command)
+void CommandScheduler::execute(const TQString &command)
{
ATCommand *cmd = new ATCommand("",command);
cmd->setAutoDelete(true);
@@ -60,9 +60,9 @@ void CommandScheduler::execute(const QString &command)
execute(cmd);
}
-void CommandScheduler::executeId(const QString &id)
+void CommandScheduler::executeId(const TQString &id)
{
- QPtrList<ATCommand> *cmds = mCommandSet.commandList();
+ TQPtrList<ATCommand> *cmds = mCommandSet.commandList();
for(uint i=0;i<cmds->count();++i) {
if (cmds->at(i)->id() == id) {
@@ -73,7 +73,7 @@ void CommandScheduler::executeId(const QString &id)
kdDebug(5960) << "CommandScheduler::executeId(): Id '" << id << "' not found" << endl;
}
-void CommandScheduler::sendCommand(const QString &command)
+void CommandScheduler::sendCommand(const TQString &command)
{
if (command.isEmpty()) {
kdDebug(5960) << "CommandScheduler::sendCommand(): Warning! Empty command."
@@ -89,7 +89,7 @@ void CommandScheduler::sendCommand(const QString &command)
void CommandScheduler::processOutput(const char *line)
{
- QString l = line;
+ TQString l = line;
ATCommand *cmd = mCommandQueue.first();
if (l == "OK") {
mState = WAITING;
@@ -123,7 +123,7 @@ void CommandScheduler::nextCommand()
}
}
-bool CommandScheduler::loadProfile(const QString& filename)
+bool CommandScheduler::loadProfile(const TQString& filename)
{
mCommandSet.clear();
@@ -132,7 +132,7 @@ bool CommandScheduler::loadProfile(const QString& filename)
return true;
}
-bool CommandScheduler::saveProfile(const QString& filename)
+bool CommandScheduler::saveProfile(const TQString& filename)
{
if (!mCommandSet.saveFile(filename)) return false;