summaryrefslogtreecommitdiffstats
path: root/kandy/src/commandscheduler.cpp
diff options
context:
space:
mode:
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 23544e8a..bef11cac 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;