25 #include <hblineedit.h> |
25 #include <hblineedit.h> |
26 #include <hbcombobox.h> |
26 #include <hbcombobox.h> |
27 #include <hbcheckbox.h> |
27 #include <hbcheckbox.h> |
28 #include <xqappmgr.h> |
28 #include <xqappmgr.h> |
29 #include <xqaiwrequest.h> |
29 #include <xqaiwrequest.h> |
30 #include <logsservices.h> |
30 #include <xqaiwdecl.h> |
|
31 #include <logsservices.h> |
31 |
32 |
32 #include "logsservicetesterwidget.h" |
33 #include "logsservicetesterwidget.h" |
33 #include "logsservicetesterappcloser.h" |
34 #include "logsservicetesterappcloser.h" |
34 #include "logsdefs.h" |
35 #include "logsdefs.h" |
35 |
36 |
51 Qt::QueuedConnection); |
52 Qt::QueuedConnection); |
52 |
53 |
53 HbLabel* comboLabel = new HbLabel("Select logs view:"); |
54 HbLabel* comboLabel = new HbLabel("Select logs view:"); |
54 |
55 |
55 mComboBox = new HbComboBox(); |
56 mComboBox = new HbComboBox(); |
56 mComboBox->addItem( "Recent view", QVariant(LogsServices::ViewAll)); |
57 mComboBox->addItem( "Recent view", QVariant(XQService::LogsViewAll)); |
57 mComboBox->addItem( "Received view", QVariant(LogsServices::ViewReceived)); |
58 mComboBox->addItem( "Received view", QVariant(XQService::LogsViewReceived)); |
58 mComboBox->addItem( "Called view", QVariant(LogsServices::ViewCalled)); |
59 mComboBox->addItem( "Called view", QVariant(XQService::LogsViewCalled)); |
59 mComboBox->addItem( "Missed view", QVariant(LogsServices::ViewMissed)); |
60 mComboBox->addItem( "Missed view", QVariant(XQService::LogsViewMissed)); |
60 |
61 |
61 mCheckBox = new HbCheckBox("Show dialpad"); |
62 mCheckBox = new HbCheckBox("Show dialpad"); |
62 |
63 |
63 HbLabel* editorLabel = new HbLabel("Launch dialpad with number:"); |
64 HbLabel* editorLabel = new HbLabel("Launch dialpad with number:"); |
64 mEditor = new HbLineEdit(); |
65 mEditor = new HbLineEdit(); |
123 { |
124 { |
124 qDebug() << "[LOGS_TESTER] -> LogsServiceTesterWidget::startNewService()"; |
125 qDebug() << "[LOGS_TESTER] -> LogsServiceTesterWidget::startNewService()"; |
125 fetchData(); |
126 fetchData(); |
126 |
127 |
127 XQApplicationManager appMgr; |
128 XQApplicationManager appMgr; |
128 QScopedPointer<XQAiwRequest> request(appMgr.create( QLatin1String(logsServiceName), |
129 QScopedPointer<XQAiwRequest> request( |
129 QLatin1String(logsInterfaceName), |
130 appMgr.create(XQI_LOGS_VIEW, XQOP_LOGS_SHOW, false) ); |
130 QLatin1String(logsOperationName), |
|
131 false)); |
|
132 if (!request.isNull()) { |
131 if (!request.isNull()) { |
133 int retValue = -1; |
132 int retValue = -1; |
134 QList<QVariant> arglist; |
133 QList<QVariant> arglist; |
135 QVariantMap map; |
134 QVariantMap map; |
136 map.insert(logsViewIndexParam, QVariant(mViewIndex)); |
135 map.insert(XQLOGS_VIEW_INDEX, QVariant(mViewIndex)); |
137 map.insert(logsShowDialpadParam, QVariant(mShowDialpad)); |
136 map.insert(XQLOGS_SHOW_DIALPAD, QVariant(mShowDialpad)); |
138 map.insert(logsDialpadTextParam, QVariant(mDialpadText)); |
137 map.insert(XQLOGS_DIALPAD_TEXT, QVariant(mDialpadText)); |
139 |
138 |
140 arglist.append(QVariant(map)); |
139 arglist.append(QVariant(map)); |
141 request->setArguments(arglist); |
140 request->setArguments(arglist); |
142 QVariant ret(retValue); |
141 QVariant ret(retValue); |
143 |
142 |