Added support for running QML debugger without C++ debugger on Symbian

Reviewed-by: kkoehne
Reviewed-by: Pawel Polanski
This commit is contained in:
Tom Sutcliffe
2011-04-21 15:59:05 +02:00
committed by Kai Koehne
parent 2caf050dcd
commit caf0547319
6 changed files with 138 additions and 11 deletions

View File

@@ -70,7 +70,8 @@ enum { debug = 0 };
CodaRunControl::CodaRunControl(RunConfiguration *runConfiguration, const QString &mode) :
S60RunControlBase(runConfiguration, mode),
m_port(0),
m_state(StateUninit)
m_state(StateUninit),
m_stopAfterConnect(false)
{
const S60DeviceRunConfiguration *s60runConfig = qobject_cast<S60DeviceRunConfiguration *>(runConfiguration);
QTC_ASSERT(s60runConfig, return);
@@ -239,7 +240,9 @@ void CodaRunControl::handleConnected()
m_state = StateConnected;
appendMessage(tr("Connected.\n"), NormalMessageFormat);
setProgress(maxProgress()*0.80);
initCommunication();
emit connected();
if (!m_stopAfterConnect)
initCommunication();
}
void CodaRunControl::handleContextRemoved(const CodaEvent &event)
@@ -392,3 +395,14 @@ void CodaRunControl::deviceRemoved(const SymbianUtils::SymbianDevice &device)
finishRunControl();
}
}
void CodaRunControl::connect()
{
m_stopAfterConnect = true;
start();
}
void CodaRunControl::run()
{
initCommunication();
}