From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kandy/src/commandscheduler.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kandy/src/commandscheduler.cpp') 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 *cmds = mCommandSet.commandList(); + TQPtrList *cmds = mCommandSet.commandList(); for(uint i=0;icount();++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; -- cgit v1.2.1