Symbian: Add timeout to CODA's serial ping message

This commit is contained in:
Pawel Polanski
2011-02-02 10:44:57 +01:00
parent f1c46420d4
commit 1a36518082
3 changed files with 9 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ bool CodaRunControl::setupLauncher()
m_tcfTrkDevice = new TcfTrkDevice;
if (debug)
m_tcfTrkDevice->setVerbose(1);
m_tcfTrkDevice->setVerbose(debug);
connect(m_tcfTrkDevice, SIGNAL(error(QString)), this, SLOT(slotError(QString)));
connect(m_tcfTrkDevice, SIGNAL(logMessage(QString)), this, SLOT(slotTrkLogMessage(QString)));
@@ -136,6 +136,7 @@ bool CodaRunControl::setupLauncher()
}
m_state = StateConnecting;
m_tcfTrkDevice->sendSerialPing(false);
QTimer::singleShot(4000, this, SLOT(checkForTimeout()));
} else {
const QSharedPointer<QTcpSocket> tcfTrkSocket(new QTcpSocket);
m_tcfTrkDevice->setDevice(tcfTrkSocket);