From 8b885e78fd262f607908ab56efd36fbf4538786e Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Tue, 19 Jul 2011 14:39:00 +0200
Subject: [PATCH] Symbian: Fix CodaClient testing tool.

Tested-by: Alessandro Portale <alessandro.portale@nokia.com>

Change-Id: I56db4b3427a87c1c67b44246e62f75a4f3ad9a77
Reviewed-on: http://codereview.qt.nokia.com/1826
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
---
 tests/tools/codaclient/codaclientapplication.cpp | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/tests/tools/codaclient/codaclientapplication.cpp b/tests/tools/codaclient/codaclientapplication.cpp
index b6667b4f1b9..6a31fa889fe 100644
--- a/tests/tools/codaclient/codaclientapplication.cpp
+++ b/tests/tools/codaclient/codaclientapplication.cpp
@@ -31,10 +31,8 @@
 **************************************************************************/
 
 #include "codaclientapplication.h"
-
-#ifdef HAS_SERIALPORT
 #include  "virtualserialdevice.h"
-#endif
+
 
 #include "codadevice.h"
 #include <QtNetwork/QTcpSocket>
@@ -335,12 +333,11 @@ bool CodaClientApplication::start()
         this, SLOT(slotError(QString)));
     connect(m_trkDevice.data(), SIGNAL(logMessage(QString)),
         this, SLOT(slotTrkLogMessage(QString)));
-    connect(m_trkDevice.data(), SIGNAL(tcfEvent(Coda::CodaEvent)),
+    connect(m_trkDevice.data(), SIGNAL(codaEvent(Coda::CodaEvent)),
         this, SLOT(slotCodaEvent(Coda::CodaEvent)));
     connect(m_trkDevice.data(), SIGNAL(serialPong(QString)),
             this, SLOT(slotSerialPong(QString)));
     if (isSerialPort(m_address)) {
-#ifdef HAS_SERIALPORT
         // Serial
         const QSharedPointer<QIODevice> serialPort(new SymbianUtils::VirtualSerialDevice(m_address));
         std::printf("Opening port %s...\n", qPrintable(m_address));
@@ -352,10 +349,6 @@ bool CodaClientApplication::start()
         }
         // Initiate communication
         m_trkDevice->sendSerialPing(m_mode == Ping);
-#else
-        std::fprintf(stderr, "Not implemented\n");
-        return false;
-#endif
     } else {
         // TCP/IP
         const QSharedPointer<QTcpSocket> codaSocket(new QTcpSocket);
-- 
GitLab