76 |
76 |
77 /** |
77 /** |
78 * Sets message input parameters |
78 * Sets message input parameters |
79 * Ownership is transferred to this class |
79 * Ownership is transferred to this class |
80 * @param aMessageParam Message Input Parameters |
80 * @param aMessageParam Message Input Parameters |
81 * @param aTemplateDetail |
81 * @param aTemplateDetail |
82 * @param aNotifyCallback Bydefault it is NULL to make function |
82 * @param aNotifyCallback Bydefault it is NULL to make function |
83 * call synchronous , if provided then function call is asynchronous |
83 * call synchronous , if provided then function call is asynchronous |
84 * @param aAsyncRequestObserver Asynchronous request observer |
84 * @param aAsyncRequestObserver Asynchronous request observer |
85 */ |
85 */ |
86 void SetInputParamsL( CSendMessageParams* aMessageParam, |
86 void SetInputParamsL( CSendMessageParams* aMessageParam, |
87 CMessageDetailInfo* aTemplateDetail = NULL, |
87 CMessageDetailInfo* aTemplateDetail = NULL, |
88 CMsgCallbackBase* aNotifyCallback = NULL, |
88 CMsgCallbackBase* aNotifyCallback = NULL, |
89 MAsyncRequestObserver* aAsyncRequestObserver = NULL); |
89 MAsyncRequestObserver* aAsyncRequestObserver = NULL); |
90 |
90 |
91 /** |
91 /** |
92 * Sends the message |
92 * Sends the message |
93 */ |
93 */ |
94 void SendMessageL(); |
94 void SendMessageL(); |
|
95 |
|
96 /** |
|
97 * Sends a sms message |
|
98 */ |
|
99 void SendSMSMessageL(); |
95 |
100 |
96 private: |
101 private: |
97 |
102 |
98 /** |
103 /** |
99 * Inherited from CActive class |
104 * Inherited from CActive class |
210 |
215 |
211 /* |
216 /* |
212 * FileName of the Body Text file used in case of MMS |
217 * FileName of the Body Text file used in case of MMS |
213 */ |
218 */ |
214 TFileName iBodyTextFileName; |
219 TFileName iBodyTextFileName; |
|
220 |
215 }; |
221 }; |
216 |
222 |
217 |
223 /** |
|
224 * Utility class for waiting for asychronous requests |
|
225 */ |
|
226 class CAsyncWaiter : public CActive |
|
227 { |
|
228 public: |
|
229 /** |
|
230 * Two-phased constructor. |
|
231 * @param aPriority set aPriority to EPriorityStandard |
|
232 * @return CAsyncWaiter object |
|
233 */ |
|
234 static CAsyncWaiter* NewL( TInt aPriority = EPriorityStandard ); |
|
235 static CAsyncWaiter* NewLC( TInt aPriority = EPriorityStandard ); |
|
236 /** |
|
237 * Destructor. |
|
238 */ |
|
239 ~CAsyncWaiter(); |
|
240 |
|
241 /** |
|
242 * Starts the active scheduler. |
|
243 */ |
|
244 void StartAndWait(); |
|
245 /** |
|
246 * Starts the active scheduler. |
|
247 */ |
|
248 TInt Result() const; |
|
249 |
|
250 private: |
|
251 |
|
252 /** |
|
253 * Constructor. |
|
254 * @param aPriority |
|
255 */ |
|
256 CAsyncWaiter( TInt aPriority ); |
|
257 |
|
258 /** |
|
259 * Inherited from CActive class |
|
260 */ |
|
261 void RunL(); |
|
262 |
|
263 /** |
|
264 * Inherited from CActive class |
|
265 */ |
|
266 void DoCancel(); |
|
267 |
|
268 private: |
|
269 |
|
270 /** |
|
271 * wait scheduler |
|
272 */ |
|
273 CActiveSchedulerWait iWait; |
|
274 |
|
275 /** |
|
276 * error |
|
277 */ |
|
278 TInt iError; |
|
279 }; |
218 |
280 |
219 |
281 |
220 #endif __SENDMESSAGE_H |
282 #endif __SENDMESSAGE_H |