diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-10-23 18:00:20 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-10-23 18:00:20 +0200 |
commit | 1af61fefa8f22932cc0db0559782ec11b0e39fd0 (patch) | |
tree | 0c582cc87579edd7bc9eae2f41aa8889494541fc /src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp | |
parent | d35dcd8dbef7e5dc6f2d87870267231f99379082 (diff) | |
download | qt-creator-1af61fefa8f22932cc0db0559782ec11b0e39fd0.tar.gz |
S60: Add startup logic for Bluetooth to the project/run configuration
Prepare trk::Launcher to deal with a shared trkdevice.
Add encapsulation for the rfcomm listener process and helper
classes for prompting the user to connect the Bluetooth
device. Add a command line prompt to the trklauncher test.
Diffstat (limited to 'src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp b/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp index 64b1ee120c..9ab5d93b3b 100644 --- a/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp +++ b/src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp @@ -34,6 +34,8 @@ #include "profilereader.h" #include "s60manager.h" #include "s60devices.h" +#include "s60runconfigbluetoothstarter.h" +#include "bluetoothlistener_gui.h" #include "serialdevicelister.h" #include <coreplugin/icore.h> @@ -572,6 +574,21 @@ void S60DeviceRunControlBase::signsisProcessFinished() initLauncher(runFileName, m_launcher); emit addToOutputWindow(this, tr("Package: %1\nDeploying application to '%2'...").arg(lsFile(copySrc), m_serialPortFriendlyName)); QString errorMessage; + // Prompt the user to start up the Blue tooth connection + if (m_communicationType == BlueToothCommunication) { + S60RunConfigBluetoothStarter starter(m_launcher->trkDevice()); + switch (trk::startBluetoothGui(starter, 0, &errorMessage)) { + case trk::BluetoothGuiConnected: + break; + case trk::BluetoothGuiCanceled: + case trk::BluetoothGuiError: + delete m_launcher; + m_launcher = 0; + error(this, errorMessage); + emit finished(); + return; + }; + } if (!m_launcher->startServer(&errorMessage)) { delete m_launcher; m_launcher = 0; |