author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
// INCLUDE FILES |
|
22 |
#include <e32base.h> |
|
23 |
#include <e32svr.h> |
|
24 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
25 |
#include <StifTestInterface.h> |
19 | 26 |
//#include <senduiconsts.h> |
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
27 |
#include <cmsvattachment.h> |
19 | 28 |
#include "messagingservice.h" |
29 |
#include "messageheader.h" |
|
30 |
#include "send_message.h" |
|
31 |
||
32 |
#ifdef __WINSCW__ |
|
33 |
#define KFolderID KMsvGlobalOutBoxIndexEntryId; |
|
34 |
#else |
|
35 |
#define KFolderID KMsvSentEntryId; |
|
36 |
#endif |
|
37 |
||
38 |
// EXTERNAL DATA STRUCTURES |
|
39 |
//extern ?external_data; |
|
40 |
||
41 |
// EXTERNAL FUNCTION PROTOTYPES |
|
42 |
//extern ?external_function( ?arg_type,?arg_type ); |
|
43 |
||
44 |
// CONSTANTS |
|
45 |
//const ?type ?constant_var = ?constant; |
|
46 |
||
47 |
// MACROS |
|
48 |
//#define ?macro ?macro_def |
|
49 |
||
50 |
// LOCAL CONSTANTS AND MACROS |
|
51 |
//const ?type ?constant_var = ?constant; |
|
52 |
//#define ?macro_name ?macro_def |
|
53 |
||
54 |
// MODULE DATA STRUCTURES |
|
55 |
//enum ?declaration |
|
56 |
//typedef ?declaration |
|
57 |
||
58 |
// LOCAL FUNCTION PROTOTYPES |
|
59 |
//?type ?function_name( ?arg_type, ?arg_type ); |
|
60 |
||
61 |
// FORWARD DECLARATIONS |
|
62 |
//class ?FORWARD_CLASSNAME; |
|
63 |
||
64 |
// ============================= LOCAL FUNCTIONS =============================== |
|
65 |
||
66 |
// ----------------------------------------------------------------------------- |
|
67 |
// ?function_name ?description. |
|
68 |
// ?description |
|
69 |
// Returns: ?value_1: ?description |
|
70 |
// ?value_n: ?description_line1 |
|
71 |
// ?description_line2 |
|
72 |
// ----------------------------------------------------------------------------- |
|
73 |
// |
|
74 |
/* |
|
75 |
?type ?function_name( |
|
76 |
?arg_type arg, // ?description |
|
77 |
?arg_type arg) // ?description |
|
78 |
{ |
|
79 |
||
80 |
?code // ?comment |
|
81 |
||
82 |
// ?comment |
|
83 |
?code |
|
84 |
} |
|
85 |
*/ |
|
86 |
||
87 |
// ============================ MEMBER FUNCTIONS =============================== |
|
88 |
||
89 |
// ----------------------------------------------------------------------------- |
|
90 |
// Csend_message::Delete |
|
91 |
// Delete here all resources allocated and opened from test methods. |
|
92 |
// Called from destructor. |
|
93 |
// ----------------------------------------------------------------------------- |
|
94 |
// |
|
95 |
void Csend_message::Delete() |
|
96 |
{ |
|
97 |
||
98 |
} |
|
99 |
||
100 |
// ----------------------------------------------------------------------------- |
|
101 |
// Csend_message::RunMethodL |
|
102 |
// Run specified method. Contains also table of test mothods and their names. |
|
103 |
// ----------------------------------------------------------------------------- |
|
104 |
// |
|
105 |
TInt Csend_message::RunMethodL( |
|
106 |
CStifItemParser& aItem ) |
|
107 |
{ |
|
108 |
||
109 |
static TStifFunctionInfo const KFunctions[] = |
|
110 |
{ |
|
111 |
// Copy this line for every implemented function. |
|
112 |
// First string is the function name used in TestScripter script file. |
|
113 |
// Second is the actual implementation member function. |
|
114 |
ENTRY( "test_1", Csend_message::Test1L ), |
|
115 |
||
116 |
}; |
|
117 |
||
118 |
const TInt count = sizeof( KFunctions ) / |
|
119 |
sizeof( TStifFunctionInfo ); |
|
120 |
||
121 |
return RunInternalL( KFunctions, count, aItem ); |
|
122 |
||
123 |
} |
|
124 |
||
125 |
// ----------------------------------------------------------------------------- |
|
126 |
// Csend_message::ExampleL |
|
127 |
// Example test method function. |
|
128 |
// (other items were commented in a header). |
|
129 |
// ----------------------------------------------------------------------------- |
|
130 |
// |
|
131 |
TInt Csend_message::fromarray_func(CStifItemParser& aItem,TPtrC& fromarray) |
|
132 |
{ |
|
133 |
TInt err = aItem.GetNextString(fromarray); |
|
134 |
if(err) |
|
135 |
{ |
|
136 |
//iLog->Log(_L("Failed to Get from array")); |
|
137 |
return KErrGeneral; |
|
138 |
}; |
|
139 |
return KErrNone; |
|
140 |
} |
|
141 |
||
142 |
||
143 |
TInt Csend_message::messtype_func(CStifItemParser& aItem,TPtrC& messtype) |
|
144 |
{ |
|
145 |
TInt err = aItem.GetNextString(messtype); |
|
146 |
if(err) |
|
147 |
{ |
|
148 |
//iLog->Log(_L("Failed to Get message type")); |
|
149 |
return KErrGeneral; |
|
150 |
}; |
|
151 |
return KErrNone; |
|
152 |
} |
|
153 |
||
154 |
TInt Csend_message::subject_func(CStifItemParser& aItem,TPtrC& subj) |
|
155 |
{ |
|
156 |
TInt err = aItem.GetNextString(subj); |
|
157 |
if(err) |
|
158 |
{ |
|
159 |
//iLog->Log(_L("Failed to Get subject")); |
|
160 |
return KErrGeneral; |
|
161 |
}; |
|
162 |
return KErrNone; |
|
163 |
} |
|
164 |
||
165 |
TInt Csend_message::body_func(CStifItemParser& aItem,TPtrC& body) |
|
166 |
{ |
|
167 |
TInt err = aItem.GetNextString(body); |
|
168 |
if(err) |
|
169 |
{ |
|
170 |
//iLog->Log(_L("Failed to Get body")); |
|
171 |
return KErrGeneral; |
|
172 |
}; |
|
173 |
return KErrNone; |
|
174 |
} |
|
175 |
||
176 |
TInt Csend_message::attach_func(CStifItemParser& aItem,TPtrC& attachm) |
|
177 |
{ |
|
178 |
TInt err = aItem.GetNextString(attachm); |
|
179 |
if(err) |
|
180 |
{ |
|
181 |
//iLog->Log(_L("Failed to Get attachments path")); |
|
182 |
return KErrGeneral; |
|
183 |
}; |
|
184 |
return KErrNone; |
|
185 |
} |
|
186 |
||
187 |
TInt Csend_message::attachtype_func(CStifItemParser& aItem,TPtrC& attachfiletype) |
|
188 |
{ |
|
189 |
TInt err = aItem.GetNextString(attachfiletype); |
|
190 |
if(err) |
|
191 |
{ |
|
192 |
//iLog->Log(_L("Failed to Get attachments type")); |
|
193 |
return KErrGeneral; |
|
194 |
}; |
|
195 |
return KErrNone; |
|
196 |
} |
|
197 |
||
198 |
TInt Csend_message::flag_func(CStifItemParser& aItem,TInt& flag) |
|
199 |
{ |
|
200 |
TInt err = aItem.GetNextInt(flag); |
|
201 |
if(err) |
|
202 |
{ |
|
203 |
//iLog->Log(_L("Failed to Get attach flag id or err code")); |
|
204 |
return KErrGeneral; |
|
205 |
}; |
|
206 |
return KErrNone; |
|
207 |
} |
|
208 |
||
209 |
||
210 |
TInt Csend_message::template_func(CStifItemParser& aItem,TInt& templateid) |
|
211 |
{ |
|
212 |
TInt err = aItem.GetNextInt(templateid); |
|
213 |
if(err) |
|
214 |
{ |
|
215 |
//iLog->Log(_L("Failed to Get template id")); |
|
216 |
return KErrGeneral; |
|
217 |
}; |
|
218 |
return KErrNone; |
|
219 |
} |
|
220 |
||
221 |
||
222 |
TInt Csend_message::editor_func(CStifItemParser& aItem,TInt& editorl) |
|
223 |
{ |
|
224 |
TInt err = aItem.GetNextInt(editorl); |
|
225 |
if(err) |
|
226 |
{ |
|
227 |
//iLog->Log(_L("Failed to Get launch flag for editor")); |
|
228 |
return KErrGeneral; |
|
229 |
}; |
|
230 |
return KErrNone; |
|
231 |
} |
|
232 |
||
233 |
TInt Csend_message::sender_func(CStifItemParser& aItem,TPtrC& sender) |
|
234 |
{ |
|
235 |
TInt err = aItem.GetNextString(sender); |
|
236 |
if(err) |
|
237 |
{ |
|
238 |
//iLog->Log(_L("Failed to Get sender")); |
|
239 |
return KErrGeneral; |
|
240 |
}; |
|
241 |
return KErrNone; |
|
242 |
} |
|
243 |
||
244 |
TInt Csend_message::rec_func(CStifItemParser& aItem,TPtrC& recarray) |
|
245 |
{ |
|
246 |
TInt err = aItem.GetNextString(recarray); |
|
247 |
if(err) |
|
248 |
{ |
|
249 |
//iLog->Log(_L("Failed to Get reciever array")); |
|
250 |
return KErrGeneral; |
|
251 |
}; |
|
252 |
return KErrNone; |
|
253 |
} |
|
254 |
||
255 |
||
256 |
TInt Csend_message::Test1L( CStifItemParser& aItem ) |
|
257 |
{ |
|
258 |
||
259 |
__UHEAP_MARK; |
|
260 |
||
261 |
TPtrC fromarray,messtype,subj,attachfiletype,attachm,body,sender,recarray; |
|
262 |
TInt templateid,editorl,flag; |
|
263 |
bool test = TRUE; |
|
264 |
||
265 |
CMessagingService* service = (CMessagingService*)CMessagingService::NewL(); |
|
266 |
CleanupStack::PushL(service); |
|
267 |
||
268 |
CSendMessageParams* send = CSendMessageParams::NewL(); |
|
269 |
||
270 |
||
271 |
TInt err1 = fromarray_func(aItem,fromarray); |
|
272 |
if(err1) |
|
273 |
{ |
|
274 |
return KErrGeneral; |
|
275 |
} |
|
276 |
||
277 |
_LIT(Knull,"NULL"); |
|
278 |
if(fromarray.CompareF(Knull)) |
|
279 |
{ |
|
280 |
_LIT(Kaddr,"AddrEnd"); |
|
281 |
while(fromarray != Kaddr) |
|
282 |
{ |
|
283 |
// count1++; |
|
284 |
send->AddRecipientL(fromarray,EMsvRecipientTo); // recipient array |
|
285 |
err1 = fromarray_func(aItem,fromarray); |
|
286 |
if(err1) |
|
287 |
{ |
|
288 |
return KErrGeneral; |
|
289 |
} |
|
290 |
} |
|
291 |
} |
|
292 |
else |
|
293 |
{ |
|
294 |
// send.iRecipientArray = NULL; |
|
295 |
} |
|
296 |
||
297 |
||
298 |
||
299 |
err1 = messtype_func(aItem,messtype); |
|
300 |
if(err1) |
|
301 |
{ |
|
302 |
return KErrGeneral; |
|
303 |
} |
|
304 |
||
305 |
if(messtype.CompareF(Knull)) |
|
306 |
{ |
|
307 |
send->SetMessageTypeL(messtype); // type of message |
|
308 |
} |
|
309 |
else |
|
310 |
{ |
|
311 |
// send->SetMessageTypeL = NULL; |
|
312 |
} |
|
313 |
||
314 |
||
315 |
||
316 |
err1 = subject_func(aItem,subj); |
|
317 |
if(err1) |
|
318 |
{ |
|
319 |
return KErrGeneral; |
|
320 |
} |
|
321 |
||
322 |
if(subj.CompareF(Knull)) |
|
323 |
{ |
|
324 |
send->SetSubjectL(subj); // subject |
|
325 |
} |
|
326 |
else |
|
327 |
{ |
|
328 |
// send->SetSubjectL = NULL; |
|
329 |
} |
|
330 |
||
331 |
||
332 |
||
333 |
err1 = body_func(aItem,body); |
|
334 |
if(err1) |
|
335 |
{ |
|
336 |
return KErrGeneral; |
|
337 |
} |
|
338 |
||
339 |
if(body.CompareF(Knull)) |
|
340 |
{ |
|
341 |
send->SetBodyTextL(body); // body of message |
|
342 |
} |
|
343 |
else |
|
344 |
{ |
|
345 |
// send->SetBodyTextL = NULL; |
|
346 |
} |
|
347 |
||
348 |
||
349 |
||
350 |
err1 = flag_func(aItem,flag); // flag to indicate no of attachments |
|
351 |
if(err1) |
|
352 |
{ |
|
353 |
return KErrGeneral; |
|
354 |
} |
|
355 |
TInt attcnt = flag; |
|
356 |
if(flag!=0) // attachment present |
|
357 |
{ |
|
358 |
||
359 |
for(int i=0;i<flag;i++) |
|
360 |
{ |
|
361 |
err1 = attach_func(aItem,attachm); |
|
362 |
if(err1) |
|
363 |
{ |
|
364 |
return KErrGeneral; |
|
365 |
} |
|
366 |
err1 = attachtype_func(aItem,attachfiletype); |
|
367 |
if(err1) |
|
368 |
{ |
|
369 |
return KErrGeneral; |
|
370 |
} |
|
371 |
_LIT(Kbl,"NULL"); |
|
372 |
CMsvAttachment::TMsvAttachmentType attachtype = CMsvAttachment::EMsvFile; |
|
373 |
CMsvAttachment* element = CMsvAttachment::NewL(attachtype); |
|
374 |
if(attachm != Kbl) |
|
375 |
{ |
|
376 |
element->SetAttachmentNameL(attachm); // attachment path |
|
377 |
} |
|
378 |
||
379 |
if(attachfiletype != Kbl) |
|
380 |
{ |
|
381 |
TBuf8<30> mimetype ; |
|
382 |
mimetype.Copy(attachfiletype); |
|
383 |
element->SetMimeTypeL(mimetype); // attachment mime type |
|
384 |
} |
|
385 |
send->AddAttachmentL(element); |
|
386 |
} |
|
387 |
||
388 |
} |
|
389 |
else |
|
390 |
{ |
|
391 |
// send->AddAttachmentL = NULL; |
|
392 |
} |
|
393 |
||
394 |
||
395 |
||
396 |
err1 = template_func(aItem,templateid); |
|
397 |
if(err1) |
|
398 |
{ |
|
399 |
return KErrGeneral; |
|
400 |
} |
|
401 |
||
402 |
if(templateid == 1) |
|
403 |
{ |
|
404 |
CMessagingService* mservice = (CMessagingService*)CMessagingService::NewL(); |
|
405 |
CleanupStack::PushL(mservice); |
|
406 |
CFilterParamInfo* mfilter = CFilterParamInfo::NewL(); |
|
407 |
CMsvEntrySelection* marray = NULL ; |
|
408 |
TRAPD(err,mservice->GetIdListL(mfilter,0,NULL ,marray)); |
|
409 |
TInt index = 0; |
|
410 |
CMessageHeader* headerarr = NULL; |
|
411 |
mservice->GetNextHeaderL(mfilter, marray, index, NULL, headerarr); |
|
412 |
TMsvId message_id; |
|
413 |
headerarr->GetMessageId(message_id); |
|
414 |
send->SetTemplateId(message_id); |
|
415 |
delete headerarr; |
|
416 |
delete marray; |
|
417 |
delete mfilter; |
|
418 |
CleanupStack::PopAndDestroy(mservice); |
|
419 |
} |
|
420 |
else if(templateid == 2) |
|
421 |
{ |
|
422 |
CMessagingService* mservice = (CMessagingService*)CMessagingService::NewL(); |
|
423 |
CleanupStack::PushL(mservice); |
|
424 |
CFilterParamInfo* mfilter = CFilterParamInfo::NewL(); |
|
425 |
CMsvEntrySelection* marray = NULL ; |
|
426 |
TRAPD(err,mservice->GetIdListL(mfilter,0,NULL ,marray)); |
|
427 |
TInt index = 0; |
|
428 |
_LIT(Kwron,"wr"); |
|
429 |
for(;;) |
|
430 |
{ |
|
431 |
CMessageHeader* headerarr = NULL; |
|
432 |
mservice->GetNextHeaderL(mfilter, marray, index, NULL, headerarr); |
|
433 |
if(headerarr) |
|
434 |
{ |
|
435 |
TPtrC subn = headerarr->Subject(); |
|
436 |
TMsvId message_id; |
|
437 |
headerarr->GetMessageId(message_id); |
|
438 |
if((subn.FindF(Kwron))!=KErrNotFound) |
|
439 |
{ |
|
440 |
send->SetTemplateId(message_id); |
|
441 |
} |
|
442 |
delete headerarr; |
|
443 |
} |
|
444 |
else |
|
445 |
break; |
|
446 |
} |
|
447 |
delete marray; |
|
448 |
delete mfilter; |
|
449 |
CleanupStack::PopAndDestroy(mservice); |
|
450 |
} |
|
451 |
else if(templateid == 3) |
|
452 |
{ |
|
453 |
CMessagingService* mservice = (CMessagingService*)CMessagingService::NewL(); |
|
454 |
CleanupStack::PushL(mservice); |
|
455 |
CFilterParamInfo* mfilter = CFilterParamInfo::NewL(); |
|
456 |
CMsvEntrySelection* marray = NULL ; |
|
457 |
TRAPD(err,mservice->GetIdListL(mfilter,0,NULL ,marray)); |
|
458 |
TInt index = 0; |
|
459 |
for(;;) |
|
460 |
{ |
|
461 |
CMessageHeader* headerarr = NULL; |
|
462 |
mservice->GetNextHeaderL(mfilter, marray, index, NULL, headerarr); |
|
463 |
_LIT(Kwron1,"nok"); |
|
464 |
_LIT(Kwron2,"hi"); |
|
465 |
TBool flg; |
|
466 |
if(headerarr) |
|
467 |
{ |
|
468 |
TPtrC subn = headerarr->Subject(); |
|
469 |
headerarr->GetAttachFlag(flg); |
|
470 |
TMsvId message_id; |
|
471 |
headerarr->GetMessageId(message_id); |
|
472 |
if(((subn.FindF(Kwron1))==KErrNotFound)&&((subn.FindF(Kwron2))==KErrNotFound)&&(flg!=0)) |
|
473 |
{ |
|
474 |
send->SetTemplateId(message_id); |
|
475 |
} |
|
476 |
delete headerarr; |
|
477 |
} |
|
478 |
else |
|
479 |
break; |
|
480 |
} |
|
481 |
delete marray; |
|
482 |
delete mfilter; |
|
483 |
CleanupStack::PopAndDestroy(mservice); |
|
484 |
} |
|
485 |
else |
|
486 |
{ |
|
487 |
send->SetTemplateId(templateid); // template id |
|
488 |
} |
|
489 |
||
490 |
||
491 |
err1 = editor_func(aItem,editorl); |
|
492 |
if(err1) |
|
493 |
{ |
|
494 |
return KErrGeneral; |
|
495 |
} |
|
496 |
send->SetLaunchEditor(editorl); // launch editor or not |
|
497 |
||
498 |
||
499 |
TRAPD(err,service->SendMessageL(send,NULL)); |
|
500 |
||
501 |
if(err == 0) |
|
502 |
{ |
|
503 |
||
504 |
/* #if defined(__WINSCW__) || defined(__WINS__) |
|
505 |
||
506 |
CFilterParamInfo* filter = CFilterParamInfo::NewL(); |
|
507 |
||
508 |
TMsvSorting sort = EMsvSortByDateReverse; |
|
509 |
filter->SetSortType(sort); // sort by date reverse |
|
510 |
||
511 |
CMsvEntrySelection* array = NULL ; |
|
512 |
||
513 |
TRAPD(err,service->GetIdListL(filter,0,NULL ,array)); |
|
514 |
||
515 |
TInt index = 0; |
|
516 |
||
517 |
CMessageHeader* headers = NULL; |
|
518 |
service->GetNextHeaderL(filter, array, index, NULL, headers); |
|
519 |
_LIT(Kblanksms,"\x2029"); |
|
520 |
_LIT(Kblankmms,""); |
|
521 |
||
522 |
if(headers) |
|
523 |
{ |
|
524 |
||
525 |
TPtrC subject = headers->Subject(); |
|
526 |
TPtrC from = headers->From(); |
|
527 |
||
528 |
TPtrC sub,fr; |
|
529 |
||
530 |
TInt err2 = body_func(aItem,sub); // get subject from cfg |
|
531 |
if(err2) |
|
532 |
{ |
|
533 |
delete headers; |
|
534 |
delete array; |
|
535 |
delete filter; |
|
536 |
CleanupStack::PopAndDestroy(service); |
|
537 |
return KErrGeneral; |
|
538 |
} |
|
539 |
||
540 |
err2 = sender_func(aItem,fr); // get fromarray from cfg |
|
541 |
if(err2) |
|
542 |
{ |
|
543 |
delete headers; |
|
544 |
delete array; |
|
545 |
delete filter; |
|
546 |
CleanupStack::PopAndDestroy(service); |
|
547 |
return KErrGeneral; |
|
548 |
} |
|
549 |
||
550 |
if( ((subject == Kblanksms)||(subject == Kblankmms)||(subject.FindF(sub)!= KErrNotFound)) && (fr == from)) // compare message subject |
|
551 |
{ |
|
552 |
test = TRUE; |
|
553 |
} |
|
554 |
else |
|
555 |
{ |
|
556 |
test = FALSE; |
|
557 |
} |
|
558 |
delete headers; |
|
559 |
} |
|
560 |
else |
|
561 |
{ |
|
562 |
test = FALSE; |
|
563 |
}*/ |
|
564 |
||
565 |
||
566 |
/* for(TInt i=0;i<attcnt;i++) |
|
567 |
{ |
|
568 |
CMessageAttachInfo* obj = detail->iAttachEntries->At(i); |
|
569 |
obj->iFile.Close(); |
|
570 |
}*/ |
|
571 |
||
572 |
/* delete send; |
|
573 |
delete array; |
|
574 |
delete filter; |
|
575 |
CleanupStack::PopAndDestroy(service); |
|
576 |
||
577 |
if(test == TRUE) // sender ,recarray and bodytext verified from cfg |
|
578 |
{ |
|
579 |
__UHEAP_MARKEND; |
|
580 |
return KErrNone; |
|
581 |
} |
|
582 |
else |
|
583 |
{ |
|
584 |
__UHEAP_MARKEND; |
|
585 |
return KErrGeneral; |
|
586 |
} |
|
587 |
||
588 |
#else*/ |
|
589 |
||
590 |
delete send; |
|
591 |
CleanupStack::PopAndDestroy(service); |
|
592 |
__UHEAP_MARKEND; |
|
593 |
return KErrNone; |
|
594 |
||
595 |
// #endif |
|
596 |
} |
|
597 |
else |
|
598 |
{ |
|
599 |
err1 = flag_func(aItem,flag); // get err code from cfg |
|
600 |
||
601 |
delete send; |
|
602 |
CleanupStack::PopAndDestroy(service); |
|
603 |
||
604 |
if(err1) |
|
605 |
{ |
|
606 |
return KErrGeneral; |
|
607 |
} |
|
608 |
||
609 |
if(err == flag) |
|
610 |
{ |
|
611 |
__UHEAP_MARKEND; |
|
612 |
return KErrNone; |
|
613 |
} |
|
614 |
else |
|
615 |
{ |
|
616 |
__UHEAP_MARKEND; |
|
617 |
return KErrGeneral; |
|
618 |
} |
|
619 |
} |
|
620 |
||
621 |
} |
|
622 |
||
623 |
// ----------------------------------------------------------------------------- |
|
624 |
// Csend_message::?member_function |
|
625 |
// ?implementation_description |
|
626 |
// (other items were commented in a header). |
|
627 |
// ----------------------------------------------------------------------------- |
|
628 |
// |
|
629 |
/* |
|
630 |
TInt Csend_message::?member_function( |
|
631 |
CItemParser& aItem ) |
|
632 |
{ |
|
633 |
||
634 |
?code |
|
635 |
||
636 |
} |
|
637 |
*/ |
|
638 |
||
639 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
640 |
// None |
|
641 |
||
642 |
// End of File |