equal
deleted
inserted
replaced
29 Class constructor. |
29 Class constructor. |
30 */ |
30 */ |
31 NmViewerServiceInterface::NmViewerServiceInterface(QObject *parent, |
31 NmViewerServiceInterface::NmViewerServiceInterface(QObject *parent, |
32 NmApplication *application, |
32 NmApplication *application, |
33 NmUiEngine &uiEngine) |
33 NmUiEngine &uiEngine) |
34 #ifndef NM_WINS_ENV |
|
35 : XQServiceProvider(emailFullServiceNameMessage, parent), |
34 : XQServiceProvider(emailFullServiceNameMessage, parent), |
36 #else |
|
37 : QObject(parent), |
|
38 #endif |
|
39 mApplication(application), |
35 mApplication(application), |
40 mUiEngine(uiEngine), |
36 mUiEngine(uiEngine), |
41 mAsyncReqId(0) |
37 mAsyncReqId(0) |
42 { |
38 { |
43 #ifndef NM_WINS_ENV |
|
44 publishAll(); |
39 publishAll(); |
45 #endif |
|
46 } |
40 } |
47 |
41 |
48 |
42 |
49 /*! |
43 /*! |
50 Class desctructor. |
44 Class desctructor. |
60 */ |
54 */ |
61 void NmViewerServiceInterface::viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId) |
55 void NmViewerServiceInterface::viewMessage(QVariant mailboxId, QVariant folderId, QVariant messageId) |
62 { |
56 { |
63 NM_FUNCTION; |
57 NM_FUNCTION; |
64 |
58 |
65 #ifndef NM_WINS_ENV |
|
66 mAsyncReqId = setCurrentRequestAsync(); |
59 mAsyncReqId = setCurrentRequestAsync(); |
67 |
60 |
68 NmId mailboxNmId(mailboxId.toULongLong()); |
61 NmId mailboxNmId(mailboxId.toULongLong()); |
69 NmId messageNmId(messageId.toULongLong()); |
62 NmId messageNmId(messageId.toULongLong()); |
70 NmId folderNmId(folderId.toULongLong()); |
63 NmId folderNmId(folderId.toULongLong()); |
120 // Exit the application when the return value is delivered |
113 // Exit the application when the return value is delivered |
121 connect(this, SIGNAL(returnValueDelivered()), |
114 connect(this, SIGNAL(returnValueDelivered()), |
122 mApplication, SLOT(delayedExitApplication())); |
115 mApplication, SLOT(delayedExitApplication())); |
123 } |
116 } |
124 } |
117 } |
125 #endif |
|
126 } |
118 } |
127 |
119 |
128 // End of file. |
120 // End of file. |