harvester/monitorplugins/messageplugin/src/messagemonitorplugin.cpp
branchRCL_3
changeset 3 6752808b2036
parent 1 acef663c1218
child 6 646a02f170b9
equal deleted inserted replaced
2:b73a2e62868f 3:6752808b2036
   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");