equal
deleted
inserted
replaced
241 if ( iSmsHeader ) |
241 if ( iSmsHeader ) |
242 { |
242 { |
243 iSmsHeader->StoreL( aStore ); |
243 iSmsHeader->StoreL( aStore ); |
244 } |
244 } |
245 } |
245 } |
246 |
246 // ----------------------------------------------------------------------------- |
|
247 // ResetUniAddresselist |
|
248 // ----------------------------------------------------------------------------- |
|
249 // |
|
250 void CUniSmsPlugin::ResetUniAddresselist() |
|
251 { |
|
252 const CMsvRecipientList& uniRecipients = iUniMtm.AddresseeList(); |
|
253 while ( uniRecipients.Count() ) |
|
254 { |
|
255 iUniMtm.RemoveAddressee( 0 ); |
|
256 } |
|
257 } |
247 // ----------------------------------------------------------------------------- |
258 // ----------------------------------------------------------------------------- |
248 // ConvertFromL |
259 // ConvertFromL |
249 // ----------------------------------------------------------------------------- |
260 // ----------------------------------------------------------------------------- |
250 // |
261 // |
251 TMsvId CUniSmsPlugin::ConvertFromL( TMsvId aId ) |
262 TMsvId CUniSmsPlugin::ConvertFromL( TMsvId aId ) |
262 UNILOGGER_ENTERFN("CUniSmsPlugin::ConvertFromL"); |
273 UNILOGGER_ENTERFN("CUniSmsPlugin::ConvertFromL"); |
263 UNILOGGER_WRITE_TIMESTAMP("CUniSmsPlugin::ConvertFromL start"); |
274 UNILOGGER_WRITE_TIMESTAMP("CUniSmsPlugin::ConvertFromL start"); |
264 SmsMtmL()->SwitchCurrentEntryL( aId ); |
275 SmsMtmL()->SwitchCurrentEntryL( aId ); |
265 SmsMtmL()->LoadMessageL(); |
276 SmsMtmL()->LoadMessageL(); |
266 iUniMtm.SwitchCurrentEntryL( aId ); |
277 iUniMtm.SwitchCurrentEntryL( aId ); |
267 iUniMtm.LoadMessageL(); |
278 iUniMtm.LoadMessageL(); |
268 |
279 ResetUniAddresselist(); |
269 TPtrC name; |
280 TPtrC name; |
270 TPtrC address; |
281 TPtrC address; |
|
282 |
271 |
283 |
272 const CSmsEmailFields& emailFields = SmsMtmL( )->SmsHeader( ).EmailFields(); |
284 const CSmsEmailFields& emailFields = SmsMtmL( )->SmsHeader( ).EmailFields(); |
273 |
285 |
274 if( emailFields.HasAddress( ) && !aIsForward ) |
286 if( emailFields.HasAddress( ) && !aIsForward ) |
275 { // If email address set -> copy them here |
287 { // If email address set -> copy them here |
639 } |
651 } |
640 |
652 |
641 CleanupStack::PopAndDestroy( sendOptions ); |
653 CleanupStack::PopAndDestroy( sendOptions ); |
642 |
654 |
643 SmsMtmL()->SaveMessageL(*store, tEntry); |
655 SmsMtmL()->SaveMessageL(*store, tEntry); |
644 |
656 store->CommitL(); |
645 store->CommitL(); |
|
646 tEntry.iSize = store->SizeL(); |
657 tEntry.iSize = store->SizeL(); |
647 if( AttachmentsSizeL( *store ) > 0 ) |
658 if( AttachmentsSizeL( *store ) > 0 ) |
648 { |
659 { |
649 tEntry.SetAttachment( ETrue ); |
660 tEntry.SetAttachment( ETrue ); |
650 } |
661 } |