equal
deleted
inserted
replaced
18 |
18 |
19 #ifndef MSGNOTIFIER_PRIVATE_H |
19 #ifndef MSGNOTIFIER_PRIVATE_H |
20 #define MSGNOTIFIER_PRIVATE_H |
20 #define MSGNOTIFIER_PRIVATE_H |
21 |
21 |
22 #include <mcsconversationlistchangeobserver.h> |
22 #include <mcsconversationlistchangeobserver.h> |
|
23 #include <QRunnable> |
23 |
24 |
24 // CLASS DECLARATION |
25 // CLASS DECLARATION |
25 class MsgNotifier; |
26 class MsgNotifier; |
26 class CCSRequestHandler; |
27 class CCSRequestHandler; |
27 class MsgStoreHandler; |
28 class MsgStoreHandler; |
28 class XQSettingsManager; |
29 class XQSettingsManager; |
29 class XQPublishAndSubscribeUtils; |
30 class XQPublishAndSubscribeUtils; |
30 class XQSystemToneService; |
31 class XQSystemToneService; |
|
32 |
|
33 /** |
|
34 * Structure to hold the details of a class 0 SMS |
|
35 */ |
|
36 struct Class0Info |
|
37 { |
|
38 QString body; |
|
39 QString address; |
|
40 QString alias; |
|
41 QString time; |
|
42 int messageId; |
|
43 }; |
31 |
44 |
32 /** |
45 /** |
33 * @class MsgNotifierPrivate |
46 * @class MsgNotifierPrivate |
34 */ |
47 */ |
35 |
48 |
112 * Popup a message box when a message is not successfully sent. |
125 * Popup a message box when a message is not successfully sent. |
113 * @param msgInfo MsgInfo The message information object |
126 * @param msgInfo MsgInfo The message information object |
114 */ |
127 */ |
115 void displayFailedNote(MsgInfo msgInfo); |
128 void displayFailedNote(MsgInfo msgInfo); |
116 |
129 |
|
130 /** |
|
131 * ShowClass0Message |
|
132 * Popups a Dialog with Class 0 SMS message... |
|
133 * @param msgInfo MsgInfo The message information object |
|
134 */ |
|
135 void ShowClass0Message(Class0Info& aClass0Info); |
|
136 |
117 private: |
137 private: |
118 /** |
138 /** |
119 * Does all the initializations. |
139 * Does all the initializations. |
120 */ |
140 */ |
121 void initL(); |
141 void initL(); |
178 * Object to handle audio alert when new message is received |
198 * Object to handle audio alert when new message is received |
179 */ |
199 */ |
180 XQSystemToneService* mSts; |
200 XQSystemToneService* mSts; |
181 }; |
201 }; |
182 |
202 |
|
203 |
|
204 /** |
|
205 * Class for launching the Class0 SMS dialog in a separate thread.. |
|
206 */ |
|
207 class Class0SmsServiceTask : public QRunnable |
|
208 { |
|
209 public: |
|
210 /** |
|
211 * Constructor |
|
212 */ |
|
213 Class0SmsServiceTask(Class0Info& class0info); |
|
214 |
|
215 /** |
|
216 * Destructor |
|
217 */ |
|
218 ~Class0SmsServiceTask(); |
|
219 |
|
220 /** |
|
221 * create and send service request |
|
222 */ |
|
223 void run(); |
|
224 |
|
225 private: |
|
226 Class0Info mClass0info; |
|
227 }; |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 |
183 #endif // MSGNOTIFIER_PRIVATE_H |
233 #endif // MSGNOTIFIER_PRIVATE_H |
184 //EOF |
234 //EOF |