21 #include "obexutilsuilayer.h" |
21 #include "obexutilsuilayer.h" |
22 #include "obexutilsdebug.h" |
22 #include "obexutilsdebug.h" |
23 #include "etelmm.h" |
23 #include "etelmm.h" |
24 #include <BTSapDomainPSKeys.h> |
24 #include <BTSapDomainPSKeys.h> |
25 #include <app/smut.h> // KUidMsgTypeSMS |
25 #include <app/smut.h> // KUidMsgTypeSMS |
|
26 #ifdef NO101APPDEPFIXES_NEW |
26 #include <app/smuthdr.h> |
27 #include <app/smuthdr.h> |
|
28 #endif //NO101APPDEPFIXES_NEW |
|
29 |
27 #include <gsmupdu.h> |
30 #include <gsmupdu.h> |
28 #include <txtrich.h> |
31 #include <txtrich.h> |
29 #include <msvuids.h> |
32 #include <msvuids.h> |
30 |
33 |
31 #include <app/csmsaccount.h> |
34 #include <app/csmsaccount.h> |
32 |
35 |
|
36 #ifdef NO101APPDEPFIXES_NEW |
33 // SMUT Unbranch |
37 // SMUT Unbranch |
34 #include <app/csmsgetdetdescinterface.h> |
38 #include <app/csmsgetdetdescinterface.h> |
35 |
39 #endif //NO101APPDEPFIXES_NEW |
36 |
40 |
37 // ================= MEMBER FUNCTIONS ======================= |
41 // ================= MEMBER FUNCTIONS ======================= |
38 TBool CSapVMessageParser::HandleMessageL(CObexBufObject* aReceivedObject, const TUid aMtmID, |
42 TBool CSapVMessageParser::HandleMessageL(CObexBufObject* aReceivedObject, const TUid aMtmID, |
39 RFile& aFile, CMsvSession* aMsvSession, TTime aTime) |
43 RFile& aFile, CMsvSession* aMsvSession, TTime aTime) |
40 { |
44 { |
427 // Saves parsed VMessage to Inbox as SMS. |
431 // Saves parsed VMessage to Inbox as SMS. |
428 // --------------------------------------------------------- |
432 // --------------------------------------------------------- |
429 // |
433 // |
430 void CSapVMessageParser::SaveSmsToInboxL(CMsvSession* aMsvSession, CRichText* aMessage) |
434 void CSapVMessageParser::SaveSmsToInboxL(CMsvSession* aMsvSession, CRichText* aMessage) |
431 { |
435 { |
432 FLOG( _L( " CSapVMessageParser: SaveSmsToInboxL\t" ) ); |
436 #ifndef NO101APPDEPFIXES_NEW |
433 |
437 (void) aMsvSession; |
|
438 (void) aMessage; |
|
439 #endif //NO101APPDEPFIXES_NEW |
|
440 #ifdef NO101APPDEPFIXES_NEW |
|
441 FLOG( _L( " CSapVMessageParser: SaveSmsToInboxL\t" ) ); |
434 CSmsHeader* header=CSmsHeader::NewL(CSmsPDU::ESmsDeliver, *aMessage ); |
442 CSmsHeader* header=CSmsHeader::NewL(CSmsPDU::ESmsDeliver, *aMessage ); |
435 CleanupStack::PushL(header); // 1st push |
443 CleanupStack::PushL(header); // 1st push |
436 header->SetFromAddressL(Address()); |
444 header->SetFromAddressL(Address()); |
437 header->SetReplyPathProvided(EFalse); |
445 header->SetReplyPathProvided(EFalse); |
438 |
446 |
503 CleanupStack::PopAndDestroy(2, newEntry); |
511 CleanupStack::PopAndDestroy(2, newEntry); |
504 aMsvSession->CleanupEntryPop(); |
512 aMsvSession->CleanupEntryPop(); |
505 CleanupStack::PopAndDestroy(header); |
513 CleanupStack::PopAndDestroy(header); |
506 |
514 |
507 FLOG( _L( " CSapVMessageParser: SaveSmsToInboxL: Done\t" ) ); |
515 FLOG( _L( " CSapVMessageParser: SaveSmsToInboxL: Done\t" ) ); |
|
516 #endif //NO101APPDEPFIXES_NEW |
508 } |
517 } |
509 |
518 |
510 // --------------------------------------------------------- |
519 // --------------------------------------------------------- |
511 // SaveSmsToSentL |
520 // SaveSmsToSentL |
512 // Saves parsed VMessage to Sent folder as SMS. |
521 // Saves parsed VMessage to Sent folder as SMS. |
513 // --------------------------------------------------------- |
522 // --------------------------------------------------------- |
514 // |
523 // |
515 void CSapVMessageParser::SaveSmsToSentL(CMsvSession* aMsvSession, CRichText* aMessage) |
524 void CSapVMessageParser::SaveSmsToSentL(CMsvSession* aMsvSession, CRichText* aMessage) |
516 { |
525 { |
|
526 #ifndef NO101APPDEPFIXES_NEW |
|
527 (void) aMsvSession; |
|
528 (void) aMessage; |
|
529 #endif //NO101APPDEPFIXES_NEW |
|
530 |
|
531 #ifdef NO101APPDEPFIXES_NEW |
517 FLOG( _L( " CSapVMessageParser: SaveSmsToSentL\t" ) ); |
532 FLOG( _L( " CSapVMessageParser: SaveSmsToSentL\t" ) ); |
518 |
533 |
519 CSmsHeader* header = CSmsHeader::NewL( CSmsPDU::ESmsSubmit, *aMessage ); |
534 CSmsHeader* header = CSmsHeader::NewL( CSmsPDU::ESmsSubmit, *aMessage ); |
520 CleanupStack::PushL( header ); |
535 CleanupStack::PushL( header ); |
521 header->SetFromAddressL(Address()); |
536 header->SetFromAddressL(Address()); |
605 CleanupStack::PopAndDestroy(2, newEntry); |
620 CleanupStack::PopAndDestroy(2, newEntry); |
606 aMsvSession->CleanupEntryPop(); |
621 aMsvSession->CleanupEntryPop(); |
607 CleanupStack::PopAndDestroy(header); |
622 CleanupStack::PopAndDestroy(header); |
608 |
623 |
609 FLOG( _L( " CSapVMessageParser: SaveSmsToSentL: Done\t" ) ); |
624 FLOG( _L( " CSapVMessageParser: SaveSmsToSentL: Done\t" ) ); |
|
625 #endif //NO101APPDEPFIXES_NEW |
610 } |
626 } |
611 |
627 |
612 // End of File |
628 // End of File |