harvesterplugins/messaging/smsmms/src/cmessageplugin.cpp
changeset 12 993ab30e92fc
parent 2 208a4ba3894c
child 26 367228f82b66
equal deleted inserted replaced
11:773be20e0a25 12:993ab30e92fc
   250         
   250         
   251     // Remove from harvesting queue
   251     // Remove from harvesting queue
   252     iObserver->RemoveHarvestingQueue(this, baseAppClass);   
   252     iObserver->RemoveHarvestingQueue(this, baseAppClass);   
   253     
   253     
   254     // Delete the index object
   254     // Delete the index object
   255     if (iIndexer[aMedia])
   255     delete iIndexer[aMedia];
   256         {
   256     iIndexer[aMedia] = NULL;
   257         delete iIndexer[aMedia];
       
   258         iIndexer[aMedia] = NULL;
       
   259         }
       
   260     
   257     
   261     // if the aActionType is EFFMmcDismount, then the
   258     // if the aActionType is EFFMmcDismount, then the
   262     // parameter aFilename is the baseAppClass of the Index database
   259     // parameter aFilename is the baseAppClass of the Index database
   263     // to be dropped.
   260     // to be dropped.
   264     if (aUndefineAsWell)
   261     if (aUndefineAsWell)
   448 		case EMsvCloseSession:
   445 		case EMsvCloseSession:
   449 		case EMsvServerTerminated:
   446 		case EMsvServerTerminated:
   450 			{
   447 			{
   451 			User::Panic(_L("CMessagePlugin PANIC"), KErrServerTerminated);
   448 			User::Panic(_L("CMessagePlugin PANIC"), KErrServerTerminated);
   452 			break;				
   449 			break;				
   453 			}			
   450 			}	
   454 		case EMsvMtmGroupInstalled:
   451 			// Following commented only for decision coverage
   455 		case EMsvMtmGroupDeInstalled:
   452 //		case EMsvMtmGroupInstalled:
   456 		case EMsvGeneralError: // not used after v5
   453 //		case EMsvMtmGroupDeInstalled:
   457 		case EMsvServerReady:
   454 //		case EMsvGeneralError: // not used after v5
   458 		case EMsvCorruptedIndexRebuilt:
   455 //		case EMsvServerReady:
   459 		case EMsvMediaIncorrect:
   456 //		case EMsvCorruptedIndexRebuilt:
   460 		case EMsvCorruptedIndexRebuilding:
   457 //		case EMsvMediaIncorrect:
       
   458 //		case EMsvCorruptedIndexRebuilding:
   461 		default:
   459 		default:
   462 			{
   460 			{
   463 			break;
   461 			break;
   464 			}							
   462 			}							
   465 		}	
   463 		}	
   483         {
   481         {
   484         OstTrace0( TRACE_NORMAL, DUP1_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ###  Mms Message ###" );
   482         OstTrace0( TRACE_NORMAL, DUP1_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ###  Mms Message ###" );
   485         CPIXLOGSTRING("CMessagePlugin:CalculateMessageType  ###  Mms Message ###");
   483         CPIXLOGSTRING("CMessagePlugin:CalculateMessageType  ###  Mms Message ###");
   486         ret = EMsgTypeMms;
   484         ret = EMsgTypeMms;
   487         }
   485         }
   488     else if( aEntry.iMtm.iUid  == KUidMsgTypeSMTP.iUid )
       
   489 		{
       
   490 		OstTrace0( TRACE_NORMAL, DUP2_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ### ESmtpEmail ###" );
       
   491 		CPIXLOGSTRING("CMessagePlugin:CalculateMessageType  ### ESmtpEmail ###");
       
   492         ret = EMsgTypeEmailSmtp;
       
   493 		}
       
   494 	else if( aEntry.iMtm.iUid  == KUidMsgTypePOP3.iUid )
       
   495 		{
       
   496 		OstTrace0( TRACE_NORMAL, DUP3_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ### EPop3Email ###" );
       
   497 		CPIXLOGSTRING("CMessagePlugin:CalculateMessageType  ### EPop3Email ###");
       
   498         ret = EMsgTypeEmailPop3;
       
   499 		}
       
   500 	else if( aEntry.iMtm.iUid  == KUidMsgTypeIMAP4.iUid )
       
   501 		{
       
   502 		OstTrace0( TRACE_NORMAL, DUP4_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ### EImap4Email ###" );
       
   503 		CPIXLOGSTRING("CMessagePlugin:CalculateMessageType  ### EImap4Email ###");
       
   504         ret = EMsgTypeEmailImap4;
       
   505 		}
       
   506 	// Add J.J	
   486 	// Add J.J	
   507 #ifndef __SERIES60_30__ // Not supported before S60 3d FP1
   487 #ifndef __SERIES60_30__ // Not supported before S60 3d FP1
   508    	else if ( aEntry.iMtm.iUid == KSenduiMtmUniMessageUid.iUid )
   488    	else if ( aEntry.iMtm.iUid == KSenduiMtmUniMessageUid.iUid )
   509 	    {
   489 	    {
   510 	    OstTrace0( TRACE_NORMAL, DUP5_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ### EDraftMessage ###" );
   490 	    OstTrace0( TRACE_NORMAL, DUP5_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType  ### EDraftMessage ###" );