bluetoothengine/btui/btcpplugin/btcpuideviceview.cpp
changeset 67 16e4b9007960
parent 57 5ebadcda06cb
child 70 f5508c13dfe0
--- a/bluetoothengine/btui/btcpplugin/btcpuideviceview.cpp	Wed Sep 29 13:09:05 2010 +0300
+++ b/bluetoothengine/btui/btcpplugin/btcpuideviceview.cpp	Wed Oct 13 13:15:31 2010 +0300
@@ -30,9 +30,9 @@
 #include <hblineedit.h>
 #include <hblistview.h>
 #include <hbmenu.h>
-#include <qstring>
-#include <qstringlist>
-#include <qdebug>
+#include <QString>
+#include <QStringList>
+#include <QDebug>
 #include <bluetoothuitrace.h>
 #include <btabstractdelegate.h>
 #include <btdelegatefactory.h>
@@ -45,6 +45,10 @@
 // docml to load
 const char* BTUI_DEVICEVIEW_DOCML = ":/docml/bt-device-view.docml";
 
+
+// ToDo:  should use base class delegate instead of mAbstractDelegate, also base class createDelegate()
+// and createExecuteDelegate()
+
 BtcpuiDeviceView::BtcpuiDeviceView(BtSettingModel &settingModel, 
         BtDeviceModel &deviceModel, 
         QGraphicsItem *parent) :
@@ -562,7 +566,7 @@
 
 void BtcpuiDeviceView::pairDelegateCompleted(int status)
 {
-    BOstraceFunctionEntry1( DUMMY_DEVLIST, this );
+    BOstraceFunctionEntryExt( DUMMY_DEVLIST, this, status );
     Q_UNUSED(status);
     //TODO: handle the error here
     if (mAbstractDelegate)
@@ -641,7 +645,8 @@
         mAbstractDelegate = BtDelegateFactory::newDelegate(
                 BtDelegate::DisconnectService, mSettingModel, mDeviceModel); 
         // todo: check return value of connect
-        connect( mAbstractDelegate, SIGNAL(delegateCompleted(int,BtAbstractDelegate*)), this, SLOT(disconnectDelegateCompleted(int)) );
+        connect( mAbstractDelegate, SIGNAL(delegateCompleted(int,BtAbstractDelegate*)), this, 
+                SLOT(disconnectDelegateCompleted(int)) );
         mAbstractDelegate->exec(QVariant(list));
     }
     BOstraceFunctionExit0(DUMMY_DEVLIST);