forked from qt-creator/qt-creator
Qnx: Connect to the device before launching the application
Change-Id: Ic3bac7f5abaf363a2334d5c7c2273ae53c3234e6 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
committed by
Christian Kandeler
parent
c89ffbe3ce
commit
eeb6af5197
@@ -47,14 +47,13 @@ BlackBerryRunControl::BlackBerryRunControl(BlackBerryRunConfiguration *runConfig
|
||||
m_connector = BlackBerryConnect::instance(runConfiguration);
|
||||
|
||||
connect(m_runner, SIGNAL(started()), this, SIGNAL(started()));
|
||||
connect(m_runner, SIGNAL(started()), m_connector, SLOT(connectToDevice()));
|
||||
connect(m_runner, SIGNAL(finished()), this, SIGNAL(finished()));
|
||||
connect(m_runner, SIGNAL(finished()), m_connector, SLOT(disconnectFromDevice()));
|
||||
connect(m_runner, SIGNAL(output(QString,Utils::OutputFormat)),
|
||||
this, SLOT(appendMessage(QString,Utils::OutputFormat)));
|
||||
connect(m_runner, SIGNAL(startFailed(QString)), this, SLOT(handleStartFailed(QString)));
|
||||
|
||||
connect(m_connector, SIGNAL(connected()), this, SLOT(launchTailProcess()));
|
||||
connect(m_connector, SIGNAL(connected()), m_runner, SLOT(start()));
|
||||
connect(m_connector, SIGNAL(output(QString,Utils::OutputFormat)),
|
||||
this, SLOT(appendMessage(QString,Utils::OutputFormat)));
|
||||
}
|
||||
@@ -66,7 +65,7 @@ BlackBerryRunControl::~BlackBerryRunControl()
|
||||
|
||||
void BlackBerryRunControl::start()
|
||||
{
|
||||
m_runner->start();
|
||||
m_connector->connectToDevice();
|
||||
}
|
||||
|
||||
ProjectExplorer::RunControl::StopResult BlackBerryRunControl::stop()
|
||||
@@ -88,10 +87,3 @@ void BlackBerryRunControl::handleStartFailed(const QString &message)
|
||||
{
|
||||
appendMessage(message, Utils::StdErrFormat);
|
||||
}
|
||||
|
||||
void BlackBerryRunControl::launchTailProcess()
|
||||
{
|
||||
// Delay the launch of "tail" to ensure the blackberry-connect
|
||||
// connection has been properly established
|
||||
QTimer::singleShot(500, m_runner, SLOT(checkSlog2Info()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user