summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp')
-rw-r--r--src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp b/src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp
index 8dcfa4b904..ad2869aac5 100644
--- a/src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp
+++ b/src/plugins/debugger/gdb/s60debuggerbluetoothstarter.cpp
@@ -30,6 +30,7 @@
#include "s60debuggerbluetoothstarter.h"
#include "bluetoothlistener.h"
#include "debuggermanager.h"
+#include "trkoptions.h"
namespace Debugger {
namespace Internal {
@@ -48,5 +49,24 @@ trk::BluetoothListener *S60DebuggerBluetoothStarter::createListener()
return rc;
}
+trk::PromptStartCommunicationResult
+S60DebuggerBluetoothStarter::startCommunication(const TrkDevicePtr &trkDevice,
+ const QString &device,
+ int communicationType,
+ QWidget *msgBoxParent,
+ QString *errorMessage)
+{
+ // Bluetooth?
+ if (communicationType == TrkOptions::BlueTooth) {
+ S60DebuggerBluetoothStarter bluetoothStarter(trkDevice);
+ bluetoothStarter.setDevice(device);
+ return trk::promptStartBluetooth(bluetoothStarter, msgBoxParent, errorMessage);
+ }
+ // Serial
+ BaseCommunicationStarter serialStarter(trkDevice);
+ serialStarter.setDevice(device);
+ return trk::promptStartSerial(serialStarter, msgBoxParent, errorMessage);
+}
+
} // namespace Internal
} // namespace Debugger