332 |
332 |
333 |
333 |
334 #ifdef __WINSCW__ |
334 #ifdef __WINSCW__ |
335 else if (!err && KMsvDraftEntryId == aFolderId2 && KMsvGlobalOutBoxIndexEntryId == aFolderId1 ) |
335 else if (!err && KMsvDraftEntryId == aFolderId2 && KMsvGlobalOutBoxIndexEntryId == aFolderId1 ) |
336 { |
336 { |
337 CClientMtmRegistry* clientMtmReg; |
337 if( entry.iMtm.iUid != KUidMsgTypeMultimedia.iUid ) |
338 clientMtmReg = CClientMtmRegistry::NewL(*iMsvSession); |
338 { |
339 CleanupStack::PushL(clientMtmReg); |
339 CClientMtmRegistry* clientMtmReg; |
340 |
340 clientMtmReg = CClientMtmRegistry::NewL(*iMsvSession); |
341 |
341 CleanupStack::PushL(clientMtmReg); |
342 CSmsClientMtm* smsMtm = static_cast<CSmsClientMtm*>(clientMtmReg->NewMtmL(KUidMsgTypeSMS)); |
342 |
343 CleanupStack::PushL(smsMtm); |
343 CSmsClientMtm* smsMtm = static_cast<CSmsClientMtm*>(clientMtmReg->NewMtmL(KUidMsgTypeSMS)); |
344 smsMtm->SwitchCurrentEntryL( msgId ); |
344 CleanupStack::PushL(smsMtm); |
345 |
345 smsMtm->SwitchCurrentEntryL( msgId ); |
346 TMsvSelectionOrdering selection; |
346 |
347 selection.SetShowInvisibleEntries(ETrue); |
347 TMsvSelectionOrdering selection; |
348 |
348 selection.SetShowInvisibleEntries(ETrue); |
349 CMsvEntry* parentEntry = CMsvEntry::NewL( smsMtm->Session(), |
349 |
350 smsMtm->Entry().Entry().Parent(), selection ); |
350 CMsvEntry* parentEntry = CMsvEntry::NewL( smsMtm->Session(), |
|
351 smsMtm->Entry().Entry().Parent(), selection ); |
351 |
352 |
352 CleanupStack::PushL(parentEntry); |
353 CleanupStack::PushL(parentEntry); |
353 // Move the message |
354 // Move the message |
354 TRAP_IGNORE( parentEntry->MoveL( msgId, KMsvSentEntryId ) ); |
355 TRAP_IGNORE( parentEntry->MoveL( msgId, KMsvSentEntryId ) ); |
355 CleanupStack::PopAndDestroy(3,clientMtmReg); // parentEntry |
356 CleanupStack::PopAndDestroy(3,clientMtmReg); // parentEntry |
356 |
357 } |
357 |
|
358 |
|
359 } |
358 } |
360 #endif |
359 #endif |
361 |
360 |
362 } |
361 } |
363 WRITELOG("END CMessageMonitorPlugin::HandleMsgMovedL"); |
362 WRITELOG("END CMessageMonitorPlugin::HandleMsgMovedL"); |