creator/src/creator_message.cpp
branchRCL_3
changeset 60 6646c35e558c
parent 50 9b2cffad4b5e
equal deleted inserted replaced
50:9b2cffad4b5e 60:6646c35e558c
    20 #include "creator_message.h" 
    20 #include "creator_message.h" 
    21 #include "creator_traces.h"
    21 #include "creator_traces.h"
    22 #include "creator_contactsetcache.h"
    22 #include "creator_contactsetcache.h"
    23 #include <apgcli.h>
    23 #include <apgcli.h>
    24 #include <MuiuMsvUiServiceUtilities.h>
    24 #include <MuiuMsvUiServiceUtilities.h>
    25 #include <utf.h>
       
    26 
    25 
    27 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
    26 #if(!defined __SERIES60_30__ && !defined __SERIES60_31__)
    28 #include <MVPbkFieldType.h>
    27 #include <MVPbkFieldType.h>
    29 #include <MVPbkContactOperationBase.h>
    28 #include <MVPbkContactOperationBase.h>
    30 #include <MVPbkStoreContactFieldCollection.h>
    29 #include <MVPbkStoreContactFieldCollection.h>
   789     CleanupStack::Pop(); // attachmentInfo
   788     CleanupStack::Pop(); // attachmentInfo
   790     CleanupStack::PushL(waiter);
   789     CleanupStack::PushL(waiter);
   791     waiter->StartAndWait();
   790     waiter->StartAndWait();
   792     CleanupStack::PopAndDestroy(waiter);        
   791     CleanupStack::PopAndDestroy(waiter);        
   793    
   792    
   794     HBufC8* tempBuf = CnvUtfConverter::ConvertFromUnicodeToUtf8L( parameters.iMessageBodyText->Des() );
   793     HBufC8* tempBuf = HBufC8::NewLC( parameters.iMessageBodyText->Des().Length() );
   795     CleanupStack::PushL(tempBuf);
   794     tempBuf->Des().Copy( parameters.iMessageBodyText->Des() );
   796     textFile.Write( tempBuf->Des() );        
   795     textFile.Write( tempBuf->Des() );        
   797     textFile.Close();
   796     textFile.Close();
   798     CleanupStack::PopAndDestroy(); //tempBuf
   797     CleanupStack::PopAndDestroy(); //tempBuf
   799     
   798     
   800     CleanupStack::PopAndDestroy(); //mimeHeaders
   799     CleanupStack::PopAndDestroy(); //mimeHeaders