telutils/dialpad/src/dialpadbluetootheventfilter.cpp
changeset 51 12bc758d6a02
parent 33 8d5d7fcf9b59
child 53 25b8d29b7c59
--- a/telutils/dialpad/src/dialpadbluetootheventfilter.cpp	Fri Sep 17 17:09:13 2010 +0300
+++ b/telutils/dialpad/src/dialpadbluetootheventfilter.cpp	Mon Oct 04 15:57:13 2010 +0300
@@ -17,12 +17,13 @@
 #include <QTimer>
 #include <QKeyEvent>
 #include <hblineedit.h>
+#include <btxqserviceapi.h>
 #include "dialpadbluetootheventfilter.h"
 #include "dialpad.h"
 #include "qtphonesrvlog.h"
 
 #ifdef Q_OS_SYMBIAN
-#include <xqservicerequest.h>
+#include <xqappmgr.h>
 #endif //Q_OS_SYMBIAN
 
 const int DialpadLongKeyPressTimeOut(1000);
@@ -67,8 +68,12 @@
     PHONE_TRACE;
     mDialpad->editor().setText(QString(""));
 #ifdef Q_OS_SYMBIAN
-    XQServiceRequest snd("com.nokia.services.btservices.ToggleBluetooth","toggleBluetooth()", false);
-    QVariant retValue;
-    snd.send(retValue);
+    XQApplicationManager appManager;
+    QScopedPointer<XQAiwRequest> request(appManager.create(BluetoothServiceName, BluetoothInterfaceTogglePower,
+                                                           BluetoothTogglePower, false));
+    if (request == NULL) {
+        return;
+    }
+    request->send();
 #endif // Q_OS_SYMBIAN
 }