diff -r 001a94c71129 -r 16e4b9007960 bluetoothengine/btui/btcpplugin/btcpuideviceview.cpp --- 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 #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -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);