equal
deleted
inserted
replaced
22 #include "creator_message.h" |
22 #include "creator_message.h" |
23 #include "creator_traces.h" |
23 #include "creator_traces.h" |
24 #include "creator_contactsetcache.h" |
24 #include "creator_contactsetcache.h" |
25 #include <apgcli.h> |
25 #include <apgcli.h> |
26 #include <MuiuServiceUtilities.h> |
26 #include <MuiuServiceUtilities.h> |
|
27 #include <utf.h> |
27 |
28 |
28 #include <mmf/common/mmfcontrollerpluginresolver.h> // for CleanupResetAndDestroyPushL |
29 #include <mmf/common/mmfcontrollerpluginresolver.h> // for CleanupResetAndDestroyPushL |
29 |
30 |
30 //static const TInt KMessagesFieldLength = 1024; |
31 //static const TInt KMessagesFieldLength = 1024; |
31 |
32 |
650 CleanupStack::Pop(); // attachmentInfo |
651 CleanupStack::Pop(); // attachmentInfo |
651 CleanupStack::PushL(waiter); |
652 CleanupStack::PushL(waiter); |
652 waiter->StartAndWait(); |
653 waiter->StartAndWait(); |
653 CleanupStack::PopAndDestroy(waiter); |
654 CleanupStack::PopAndDestroy(waiter); |
654 |
655 |
655 HBufC8* tempBuf = HBufC8::NewLC( parameters.iMessageBodyText->Des().Length() ); |
656 HBufC8* tempBuf = CnvUtfConverter::ConvertFromUnicodeToUtf8L( parameters.iMessageBodyText->Des() ); |
656 tempBuf->Des().Copy( parameters.iMessageBodyText->Des() ); |
657 CleanupStack::PushL(tempBuf); |
657 textFile.Write( tempBuf->Des() ); |
658 textFile.Write( tempBuf->Des() ); |
658 textFile.Close(); |
659 textFile.Close(); |
659 CleanupStack::PopAndDestroy(); //tempBuf |
660 CleanupStack::PopAndDestroy(); //tempBuf |
660 |
661 |
661 CleanupStack::PopAndDestroy(); //mimeHeaders |
662 CleanupStack::PopAndDestroy(); //mimeHeaders |