ipsservices/ipssosplugin/src/ipsplgdisconnectop.cpp
changeset 23 2dc6caa42ec3
parent 20 ecc8def7944a
child 56 15bc1d5d6267
--- a/ipsservices/ipssosplugin/src/ipsplgdisconnectop.cpp	Mon May 03 12:23:15 2010 +0300
+++ b/ipsservices/ipssosplugin/src/ipsplgdisconnectop.cpp	Fri May 14 15:41:10 2010 +0300
@@ -23,7 +23,8 @@
 // ----------------------------------------------------------------------------
 // CIpsPlgDisconnectOp::NewL()
 // ----------------------------------------------------------------------------
-//
+// <qmail> aDoRemoveAfterDisconnect parameter removed
+// <qmail> MFSMailRequestObserver& changed to pointer
 CIpsPlgDisconnectOp* CIpsPlgDisconnectOp::NewL(
     CMsvSession& aMsvSession,
     TRequestStatus& aObserverRequestStatus,
@@ -34,7 +35,7 @@
     TInt aFSRequestId )
     {
     FUNC_LOG;
-    // <qmail> aDoRemoveAfterDisconnect removed
+// <qmail> aDoRemoveAfterDisconnect removed
     CIpsPlgDisconnectOp* op = new(ELeave) CIpsPlgDisconnectOp(
         aMsvSession,
         aObserverRequestStatus,
@@ -130,9 +131,11 @@
 void CIpsPlgDisconnectOp::DoRunL()
     {
     FUNC_LOG;
+// <qmail>
     if( Connected() )
         {        
         DoDisconnectL();
+// </qmail>
         }
     else
         {                
@@ -144,7 +147,8 @@
 // ----------------------------------------------------------------------------
 // CIpsPlgDisconnectOp::CIpsPlgDisconnectOp()
 // ----------------------------------------------------------------------------
-//
+// <qmail> aDoRemoveAfterDisconnect removed
+// <qmail> MFSMailRequestObserver& changed to pointer
 CIpsPlgDisconnectOp::CIpsPlgDisconnectOp(
     CMsvSession& aMsvSession,
     TRequestStatus& aObserverRequestStatus,
@@ -172,7 +176,9 @@
 void CIpsPlgDisconnectOp::ConstructL()
     {    
     FUNC_LOG;
+// <qmail> iDisconnected removed
     TMsvId service;
+    
     iMsvSession.GetEntry( iService, service, iTEntry );
     
     if ( iTEntry.iType.iUid == KUidMsvServiceEntryValue )
@@ -181,6 +187,7 @@
         }
     else
         {
+        //should we panic with own codes?
         User::Leave( KErrNotSupported );
         }
     
@@ -195,6 +202,8 @@
 void CIpsPlgDisconnectOp::DoDisconnectL()
     {
     FUNC_LOG;
+    iStatus = KRequestPending;
+    
     TInt cmd = (iTEntry.iMtm == KUidMsgTypePOP3) ? KPOP3MTMDisconnect : KIMAP4MTMDisconnect;
     InvokeClientMtmAsyncFunctionL( cmd, iService ); // <qmail> 1 param removed
     SetActive();
@@ -216,3 +225,5 @@
         return EIpsOpTypeImap4Disconnect;
         }
     }
+// </qmail>
+