ipsservices/ipssosplugin/src/ipsplgpop3connectop.cpp
changeset 76 38bf5461e270
parent 56 15bc1d5d6267
equal deleted inserted replaced
74:6c59112cfd31 76:38bf5461e270
    30 // CIpsPlgPop3ConnectOp::NewL()
    30 // CIpsPlgPop3ConnectOp::NewL()
    31 // ----------------------------------------------------------------------------
    31 // ----------------------------------------------------------------------------
    32 // <qmail> MFSMailRequestObserver& changed to pointer
    32 // <qmail> MFSMailRequestObserver& changed to pointer
    33 // <qmail> aSignallingAllowed parameter added
    33 // <qmail> aSignallingAllowed parameter added
    34 // <qmail> aFetchWillFollow parameter added
    34 // <qmail> aFetchWillFollow parameter added
       
    35 // <qmail> Silent connection parameter added
    35 CIpsPlgPop3ConnectOp* CIpsPlgPop3ConnectOp::NewL(
    36 CIpsPlgPop3ConnectOp* CIpsPlgPop3ConnectOp::NewL(
    36     CMsvSession& aMsvSession,                           
    37     CMsvSession& aMsvSession,                           
    37     TRequestStatus& aObserverRequestStatus,
    38     TRequestStatus& aObserverRequestStatus,
    38     TMsvId aService,
    39     TMsvId aService,
    39     TBool aForcePopulate,
    40     TBool aForcePopulate,
    41     TFSMailMsgId aFSMailBoxId,
    42     TFSMailMsgId aFSMailBoxId,
    42     MFSMailRequestObserver* aFSOperationObserver,
    43     MFSMailRequestObserver* aFSOperationObserver,
    43     TInt aFSRequestId,
    44     TInt aFSRequestId,
    44     CIpsPlgEventHandler* aEventHandler,
    45     CIpsPlgEventHandler* aEventHandler,
    45     TBool aSignallingAllowed,
    46     TBool aSignallingAllowed,
    46     TBool aFetchWillFollow )
    47     TBool aFetchWillFollow,
       
    48     TBool aSilentConnection)
    47     {
    49     {
    48     FUNC_LOG;
    50     FUNC_LOG;
    49     CIpsPlgPop3ConnectOp* op = new(ELeave) CIpsPlgPop3ConnectOp(
    51     CIpsPlgPop3ConnectOp* op = new(ELeave) CIpsPlgPop3ConnectOp(
    50         aMsvSession,
    52         aMsvSession,
    51         aObserverRequestStatus,
    53         aObserverRequestStatus,
    55         aFSMailBoxId,
    57         aFSMailBoxId,
    56         aFSOperationObserver,
    58         aFSOperationObserver,
    57         aFSRequestId,
    59         aFSRequestId,
    58         aEventHandler,
    60         aEventHandler,
    59         aSignallingAllowed,
    61         aSignallingAllowed,
    60         aFetchWillFollow );
    62         aFetchWillFollow,
       
    63         aSilentConnection);
    61 
    64 
    62     CleanupStack::PushL( op );
    65     CleanupStack::PushL( op );
    63     op->ConstructL();
    66     op->ConstructL();
    64     CleanupStack::Pop( op );
    67     CleanupStack::Pop( op );
    65     return op;
    68     return op;
   257 // <qmail> priority parameter has been removed
   260 // <qmail> priority parameter has been removed
   258 // <qmail> MFSMailRequestObserver& changed to pointer
   261 // <qmail> MFSMailRequestObserver& changed to pointer
   259 // <qmail> aSignallingAllowed parameter added
   262 // <qmail> aSignallingAllowed parameter added
   260 // <qmail> aFetchWillFollow parameter added
   263 // <qmail> aFetchWillFollow parameter added
   261 // <qmail> iAlreadyConnected removed
   264 // <qmail> iAlreadyConnected removed
       
   265 // <qmail> Silent connection parameter added
   262 CIpsPlgPop3ConnectOp::CIpsPlgPop3ConnectOp(
   266 CIpsPlgPop3ConnectOp::CIpsPlgPop3ConnectOp(
   263     CMsvSession& aMsvSession,
   267     CMsvSession& aMsvSession,
   264     TRequestStatus& aObserverRequestStatus,
   268     TRequestStatus& aObserverRequestStatus,
   265     TMsvId aServiceId,
   269     TMsvId aServiceId,
   266     TBool aForcePopulate,
   270     TBool aForcePopulate,
   268     TFSMailMsgId aFSMailBoxId,
   272     TFSMailMsgId aFSMailBoxId,
   269     MFSMailRequestObserver* aFSOperationObserver,
   273     MFSMailRequestObserver* aFSOperationObserver,
   270     TInt aFSRequestId,
   274     TInt aFSRequestId,
   271     CIpsPlgEventHandler* aEventHandler,
   275     CIpsPlgEventHandler* aEventHandler,
   272     TBool aSignallingAllowed,
   276     TBool aSignallingAllowed,
   273     TBool aFetchWillFollow )
   277     TBool aFetchWillFollow,
       
   278     TBool aSilentConnection )
   274     :
   279     :
   275     CIpsPlgOnlineOperation(
   280     CIpsPlgOnlineOperation(
   276         aMsvSession,
   281         aMsvSession,
   277         aObserverRequestStatus, 
   282         aObserverRequestStatus, 
   278         aActivityTimer, 
   283         aActivityTimer, 
   281         aFSRequestId,
   286         aFSRequestId,
   282         aSignallingAllowed ),
   287         aSignallingAllowed ),
   283     iState( EIdle ),
   288     iState( EIdle ),
   284     iForcePopulate( aForcePopulate ),
   289     iForcePopulate( aForcePopulate ),
   285     iEventHandler( aEventHandler ),
   290     iEventHandler( aEventHandler ),
   286     iFetchWillFollow( aFetchWillFollow )
   291     iFetchWillFollow( aFetchWillFollow ),
       
   292     iSilentConnection( aSilentConnection )
   287     {
   293     {
   288     iService = aServiceId; 
   294     iService = aServiceId; 
   289     }
   295     }
   290 
   296 
   291 // ----------------------------------------------------------------------------
   297 // ----------------------------------------------------------------------------
   335 void CIpsPlgPop3ConnectOp::DoConnectL()
   341 void CIpsPlgPop3ConnectOp::DoConnectL()
   336     {
   342     {
   337     FUNC_LOG;
   343     FUNC_LOG;
   338     // <qmail> unnecessary: iStatus = KRequestPending;
   344     // <qmail> unnecessary: iStatus = KRequestPending;
   339     NM_COMMENT("CIpsPlgPop3ConnectOp: connecting");
   345     NM_COMMENT("CIpsPlgPop3ConnectOp: connecting");
       
   346     
       
   347     // select connection type based on iSilentConnection
       
   348     // NOTE: Cannot be implemented yet, because MTM support is not released yet
   340     InvokeClientMtmAsyncFunctionL( KPOP3MTMConnect, iService ); // <qmail> 1 param removed
   349     InvokeClientMtmAsyncFunctionL( KPOP3MTMConnect, iService ); // <qmail> 1 param removed
   341     SetActive();
   350     SetActive();
   342 
   351 
   343 // <qmail>
   352 // <qmail>
   344     if ( iEventHandler )
   353     if ( iEventHandler )