diff options
Diffstat (limited to 'src/progs/gpsim/base/gpsim.cpp')
-rw-r--r-- | src/progs/gpsim/base/gpsim.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/progs/gpsim/base/gpsim.cpp b/src/progs/gpsim/base/gpsim.cpp index e6c17bd..4352162 100644 --- a/src/progs/gpsim/base/gpsim.cpp +++ b/src/progs/gpsim/base/gpsim.cpp @@ -8,7 +8,7 @@ ***************************************************************************/ #include "gpsim.h" -#include <qregexp.h> +#include <tqregexp.h> #include "progs/base/generic_prog.h" #include "progs/base/generic_debug.h" @@ -16,7 +16,7 @@ GPSim::Process::Process(Log::Base *base) : ::Process::LineOutput(0, "gpsim_process"), Log::Base(base), _ready(false) { - connect(this, SIGNAL(stdoutDataReceived()), SLOT(stdoutDataReceivedSlot())); + connect(this, TQT_SIGNAL(stdoutDataReceived()), TQT_SLOT(stdoutDataReceivedSlot())); } void GPSim::Process::stdoutDataReceivedSlot() @@ -28,15 +28,15 @@ void GPSim::Process::stdoutDataReceivedSlot() } } -void GPSim::Process::addStdoutLine(const QString &line) +void GPSim::Process::addStdoutLine(const TQString &line) { log(Log::DebugLevel::Extra, " " + line, Log::Delayed); if ( line.startsWith("***ERROR:") ) { log(Log::LineType::Error, line); return; } - QString s = line; - QString prompt = "**gpsim> "; + TQString s = line; + TQString prompt = "**gpsim> "; while ( s.startsWith(prompt) ) { _ready = true; s = s.mid(prompt.length()); @@ -53,7 +53,7 @@ GPSim::ProcessManager::ProcessManager(Log::Base *base) bool GPSim::ProcessManager::start() { _process._ready = false; - _process.setup("gpsim", QStringList("-i"), false); + _process.setup("gpsim", TQStringList("-i"), false); if ( !_process.start(0) ) { log(Log::LineType::Error, i18n("Failed to start \"gpsim\".")); return false; @@ -75,11 +75,11 @@ bool GPSim::ProcessManager::runSynchronously() return true; } -bool GPSim::ProcessManager::sendCommand(const QString &cmd, bool synchronous) +bool GPSim::ProcessManager::sendCommand(const TQString &cmd, bool synchronous) { _process._ready = false; _process._stdoutLines.clear(); - _process._stdout = QString::null; + _process._stdout = TQString(); _process.writeToStdin(cmd + '\n'); if (synchronous) return runSynchronously(); return true; @@ -89,7 +89,7 @@ bool GPSim::ProcessManager::sendSignal(uint n, bool synchronous) { _process._ready = false; _process._stdoutLines.clear(); - _process._stdout = QString::null; + _process._stdout = TQString(); if ( !_process.signal(n) ) { log(Log::LineType::Error, i18n("Error send a signal to the subprocess.")); return false; @@ -101,7 +101,7 @@ bool GPSim::ProcessManager::sendSignal(uint n, bool synchronous) bool GPSim::ProcessManager::getVersion(VersionData &version) { if ( !sendCommand("version", true) ) return false; - QRegExp reg("\\w*\\s*(\\d+\\.\\d+\\.\\d+).*"); + TQRegExp reg("\\w*\\s*(\\d+\\.\\d+\\.\\d+).*"); if ( _process.sout().count()==0 || !reg.exactMatch(_process.sout()[0]) ) { version = VersionData(); return true; @@ -136,18 +136,18 @@ void GPSim::Hardware::internalDisconnectHardware() _manager = 0; } -bool GPSim::Hardware::execute(const QString &command, bool synchronous, QStringList *output) +bool GPSim::Hardware::execute(const TQString &command, bool synchronous, TQStringList *output) { - log(Log::DebugLevel::Normal, QString("command: %1").arg(command)); + log(Log::DebugLevel::Normal, TQString("command: %1").tqarg(command)); if (output) output->clear(); if ( !_manager->sendCommand(command, synchronous) ) return false; if (output) *output = _manager->process().sout(); return true; } -bool GPSim::Hardware::signal(uint n, bool synchronous, QStringList *output) +bool GPSim::Hardware::signal(uint n, bool synchronous, TQStringList *output) { - log(Log::DebugLevel::Normal, QString("signal: %1").arg(n)); + log(Log::DebugLevel::Normal, TQString("signal: %1").tqarg(n)); if (output) output->clear(); if ( !_manager->sendSignal(n, synchronous) ) return false; if (output) *output = _manager->process().sout(); |