15 * |
15 * |
16 */ |
16 */ |
17 //USER |
17 //USER |
18 #include "logsservicehandlerold.h" |
18 #include "logsservicehandlerold.h" |
19 #include "logslogger.h" |
19 #include "logslogger.h" |
20 #include "logsmainwindow.h" |
|
21 #include <xqserviceutil.h> |
20 #include <xqserviceutil.h> |
22 |
21 |
23 //SYSTEM |
22 //SYSTEM |
24 |
23 |
25 // ----------------------------------------------------------------------------- |
24 // ----------------------------------------------------------------------------- |
26 // LogsServiceHandlerOld::LogsServiceHandlerOld |
25 // LogsServiceHandlerOld::LogsServiceHandlerOld |
27 // deprecated Use "logs.com.nokia.symbian.ILogsView" interface and |
26 // deprecated Use "logs.com.nokia.symbian.ILogsView" interface and |
28 // "show(int,bool,QString)" operation instead |
27 // "show(QVariantMap)" operation instead |
29 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
30 // |
29 // |
31 LogsServiceHandlerOld::LogsServiceHandlerOld(LogsMainWindow& mainWindow) |
30 LogsServiceHandlerOld::LogsServiceHandlerOld() |
32 : XQServiceProvider(QLatin1String("com.nokia.services.logsservices.starter"),0), |
31 : XQServiceProvider(QLatin1String("com.nokia.services.logsservices.starter"),0) |
33 mMainWindow(mainWindow) |
|
34 { |
32 { |
35 LOGS_QDEBUG( "logs [UI] -> LogsServiceHandlerOld::LogsServiceHandlerOld()" ) |
33 LOGS_QDEBUG( "logs [UI] -> LogsServiceHandlerOld::LogsServiceHandlerOld()" ) |
36 |
34 |
37 publishAll(); |
35 publishAll(); |
38 mIsAppStartedUsingService = XQServiceUtil::isService(); |
36 mIsAppStartedUsingService = XQServiceUtil::isService(); |
64 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::start(), incorrect view" ) |
62 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::start(), incorrect view" ) |
65 return -1; |
63 return -1; |
66 } |
64 } |
67 mIsAppStartedUsingService = true; |
65 mIsAppStartedUsingService = true; |
68 |
66 |
69 LOGS_QDEBUG( "logs [UI] Bring app to foreground" ) |
|
70 mMainWindow.bringAppToForeground(); |
|
71 |
|
72 emit activateView((LogsServices::LogsView)activatedView, showDialpad, QString()); |
67 emit activateView((LogsServices::LogsView)activatedView, showDialpad, QString()); |
73 |
68 |
74 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::start()" ) |
69 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::start()" ) |
75 return 0; |
70 return 0; |
76 } |
71 } |
90 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::startWithNum(), incorrect view" ) |
85 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::startWithNum(), incorrect view" ) |
91 return -1; |
86 return -1; |
92 } |
87 } |
93 mIsAppStartedUsingService = true; |
88 mIsAppStartedUsingService = true; |
94 |
89 |
95 LOGS_QDEBUG( "logs [UI] Bring app to foreground" ) |
|
96 mMainWindow.bringAppToForeground(); |
|
97 |
|
98 emit activateView(dialpadText); |
90 emit activateView(dialpadText); |
99 |
91 |
100 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::startWithNum()" ) |
92 LOGS_QDEBUG( "logs [UI] <- LogsServiceHandlerOld::startWithNum()" ) |
101 return 0; |
93 return 0; |
102 } |
94 } |