summaryrefslogtreecommitdiffstats
path: root/tools/runonphone/codasignalhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/runonphone/codasignalhandler.cpp')
-rw-r--r--tools/runonphone/codasignalhandler.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/runonphone/codasignalhandler.cpp b/tools/runonphone/codasignalhandler.cpp
index 0d086b5..2de6fbc 100644
--- a/tools/runonphone/codasignalhandler.cpp
+++ b/tools/runonphone/codasignalhandler.cpp
@@ -46,6 +46,7 @@
#include <QObject>
#include <QTimer>
#include "codasignalhandler.h"
+#include "texttracehandler.h"
static const quint64 DEFAULT_CHUNK_SIZE = 40000;
@@ -168,11 +169,14 @@ int CodaSignalHandler::run()
QString deviceError = "No such port";
if (d->codaDevice)
deviceError = d->codaDevice->device()->errorString();
- reportError(tr("Could not open serial device: ").arg(deviceError));
+ reportError(tr("Could not open serial device: %1").arg(deviceError));
SymbianUtils::SymbianDeviceManager::instance()->releaseCodaDevice(d->codaDevice);
return 1;
}
+ TextTraceHandler *traceHandler = new TextTraceHandler(
+ SymbianUtils::SymbianDeviceManager::instance()->getOstChannel(d->serialPortName, 2), this);
+
if (d->loglevel > 1) {
d->codaDevice->setVerbose(1);
}
@@ -190,6 +194,8 @@ int CodaSignalHandler::run()
d->eventLoop->exec();
int result = d->result;
reportMessage(tr("Done."));
+
+ delete traceHandler;
disconnect(d->codaDevice.data(), 0, this, 0);
SymbianUtils::SymbianDeviceManager::instance()->releaseCodaDevice(d->codaDevice);