phoneapp/phoneuiqtviewadapter/src/phoneapplauncher.cpp
changeset 64 6aaf0276100e
parent 46 bc5a64e5bc3c
child 65 2a5d4ab426d3
--- a/phoneapp/phoneuiqtviewadapter/src/phoneapplauncher.cpp	Wed Aug 18 09:48:26 2010 +0300
+++ b/phoneapp/phoneuiqtviewadapter/src/phoneapplauncher.cpp	Thu Sep 02 20:26:16 2010 +0300
@@ -17,9 +17,9 @@
 
 #include <devicelockaccessapi.h>
 #include <xqservicerequest.h>
-#include <logsservices.h>
 #include <xqappmgr.h>
 #include <xqrequestinfo.h>
+#include <xqaiwdecl.h>
 
 #include "phoneapplauncher.h"
 #include "qtphonelog.h"
@@ -58,7 +58,8 @@
         "com.nokia.services.hbserviceprovider",
         "conversationview",
         "send(QString,QString,QString)",
-        arguments);
+        arguments,
+        true);
 }
 
 /*!
@@ -71,7 +72,8 @@
         "com.nokia.services.phonebookappservices",
         "Launch",
         "launch()",
-        arguments);
+        arguments,
+        true);
 }
 
 /*!
@@ -83,16 +85,17 @@
         const QString &dialpadText)
 {
     QVariantMap map;
-    map.insert("view_index", QVariant(activatedView));
-    map.insert("show_dialpad", QVariant(showDialpad));
-    map.insert("dialpad_text", QVariant(dialpadText));
+    map.insert(XQLOGS_VIEW_INDEX, QVariant(activatedView));
+    map.insert(XQLOGS_SHOW_DIALPAD, QVariant(showDialpad));
+    map.insert(XQLOGS_DIALPAD_TEXT, QVariant(dialpadText));
     QList<QVariant> args;
     args.append(QVariant(map));
     sendServiceRequest(
         "logs",
-        "com.nokia.symbian.ILogsView",
-        "show(QVariantMap)",
-        args);
+        XQI_LOGS_VIEW,
+        XQOP_LOGS_SHOW,
+        args,
+        false);
 }
 
 /*!
@@ -102,7 +105,8 @@
         const QString &service, 
         const QString &interface,
         const QString &operation,
-        const QList<QVariant> &arguments)
+        const QList<QVariant> &arguments, 
+        const bool foreground)
 {
     int err = -1;
     TRAP_IGNORE(
@@ -124,9 +128,13 @@
             PHONE_TRACE1("service not found");
             return;
         }
-        XQRequestInfo info;
-        info.setForeground(true);
-        request->setInfo(info);
+
+        if (foreground) {
+            XQRequestInfo info;
+            info.setForeground(true);
+            request->setInfo(info);
+        }
+        
         request->setArguments(arguments);
         QVariant retValue(-1);
         if (!request->send(retValue)) {