htiui/HtiServicePlugins/HtiMessagesServicePlugin/src/MessageMgmntHandler.cpp
branchRCL_3
changeset 3 2703485a934c
parent 0 d6fe6244b863
child 6 69ec17276f52
equal deleted inserted replaced
0:d6fe6244b863 3:2703485a934c
   836                 smtpMtm->AddAttachmentL( attPath->Des(), mimeType, charset,
   836                 smtpMtm->AddAttachmentL( attPath->Des(), mimeType, charset,
   837                         waiter->iStatus );
   837                         waiter->iStatus );
   838                 waiter->StartAndWait();
   838                 waiter->StartAndWait();
   839                 CleanupStack::PopAndDestroy( waiter );
   839                 CleanupStack::PopAndDestroy( waiter );
   840                 HTI_LOG_TEXT( "Attachment added succesfully" );
   840                 HTI_LOG_TEXT( "Attachment added succesfully" );
   841 
   841                 ls.Close();
   842                 attachmentsExist = ETrue;
   842                 attachmentsExist = ETrue;
   843                 }
   843                 }
   844 
   844 
   845             CleanupStack::PopAndDestroy(); // fsSession
   845             CleanupStack::PopAndDestroy(); // fsSession
   846             }
   846             }
  1189 
  1189 
  1190         // update the message header
  1190         // update the message header
  1191         CSmsHeader* smsHeader = &( smsMtm->SmsHeader() );
  1191         CSmsHeader* smsHeader = &( smsMtm->SmsHeader() );
  1192         delete smsHeader;
  1192         delete smsHeader;
  1193         smsHeader = NULL;
  1193         smsHeader = NULL;
  1194         smsHeader = CSmsHeader::NewL( CSmsPDU::ESmsDeliver, smsMtm->Body() );
  1194         smsHeader = CSmsHeader::NewL( CSmsPDU::ESmsSubmit, smsMtm->Body() );
  1195         smsHeader->SetFromAddressL( fromTo->Des() );
  1195         smsHeader->SetFromAddressL( fromTo->Des() );
  1196 
  1196 
  1197         // set body, the actual BIO message content
  1197         // set body, the actual BIO message content
  1198         smsMtm->Body().Reset();
  1198         smsMtm->Body().Reset();
  1199         smsMtm->Body().InsertL( 0, body->Des() );
  1199         smsMtm->Body().InsertL( 0, body->Des() );