S60/Trk: Make the port a property of TrkDevice.

Associate the port with the device instead of passing it to open
for better handling.
This commit is contained in:
Friedemann Kleint
2010-02-08 14:10:51 +01:00
parent a6037c3850
commit 3efdb87682
13 changed files with 42 additions and 44 deletions

View File

@@ -1730,12 +1730,13 @@ void TrkGdbAdapter::startAdapter()
setState(AdapterStarting);
debugMessage(_("TRYING TO START ADAPTER"));
logMessage(QLatin1String("### Starting TrkGdbAdapter"));
m_trkDevice->setPort(effectiveTrkDevice());
m_trkDevice->setSerialFrame(effectiveTrkDeviceType() != TrkOptions::BlueTooth);
// Prompt the user to start communication
QString message;
const trk::PromptStartCommunicationResult src =
S60DebuggerBluetoothStarter::startCommunication(m_trkDevice,
effectiveTrkDevice(),
effectiveTrkDeviceType(),
0, &message);
switch (src) {