email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP
changeset 76 60a8a215b0ec
parent 58 5401a102f08b
--- a/email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP	Tue Oct 05 13:58:47 2010 +0530
+++ b/email/pop3andsmtpmtm/popservermtm/src/POPSMTM.CPP	Tue Oct 19 11:30:16 2010 +0530
@@ -260,7 +260,8 @@
 	switch(aCommand)
 		{
 	case KPOP3MTMConnect: // KPop3MtmConnectUID
-		DoConnectL(aStatus, aSelection);
+	case KPOP3MTMSilentConnect:
+		DoConnectL(aStatus, aSelection, aCommand);
 		MOBILITY_TEST_MTM_STATE(iServiceId, KMobilityTestMtmStatePopConnecting);
 		break;
 	case KPOP3MTMDisconnect:
@@ -294,7 +295,7 @@
 //
 //
 //
-void CImppServerMtm::DoConnectL(TRequestStatus& aStatus, CMsvEntrySelection& aSelection)
+void CImppServerMtm::DoConnectL(TRequestStatus& aStatus, CMsvEntrySelection& aSelection, TInt aCommand)
 	{
 	__ASSERT_ALWAYS(iServerEntry, Panic(EPopNullPointer));
 	if(IsActive())
@@ -332,7 +333,14 @@
 		{
 		iSessionManager = CPopSessionManager::NewL();
 		}
-
+	if(aCommand == KPOP3MTMSilentConnect)
+	    {
+        iSessionManager->SetSilentConnection(ETrue);
+	    }
+	else
+	    {
+        iSessionManager->SetSilentConnection(EFalse);
+	    }
 #if (defined SYMBIAN_USER_PROMPT_SERVICE) 	
 	// Connect to UPS server and check if connection to remote server is permitted.
 	iWaiter->AuthoriseAndConnectL(iPopSettings, iClientThreadId, iHasCapability, iStatus);