ipsservices/ipssosaoplugin/inc/IpsSosAOSmtpAgent.h
branchRCL_3
changeset 24 d189ee25cf9d
parent 0 8466d47a6819
child 25 3533d4323edc
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
    14 * Description: 
    14 * Description: 
    15 *     Always online plugin for freestyle smtp handling
    15 *     Always online plugin for freestyle smtp handling
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 #ifndef __IPSSOSAOSMTPAGENT_H__
    19 #ifndef __IPSSOSAOSMTPAGENT_H
    20 #define __IPSSOSAOSMTPAGENT_H__
    20 #define __IPSSOSAOSMTPAGENT_H
    21 
    21 
    22 
    22 
    23 #include <e32base.h>    // CBase
    23 #include <e32base.h>    // CBase
    24 #include <msvapi.h>
    24 #include <msvapi.h>
    25 
    25 
    26 class CIpsPlgSmtpOperation;
    26 class CIpsPlgSmtpOperation;
    27 class CIpsSetDataApi;
    27 //<QMail>
       
    28 
       
    29 //</QMail>
    28 
    30 
    29 /**
    31 /**
    30 * class CIpsSosAOSmtpAgent;
    32 * class CIpsSosAOSmtpAgent;
    31 *
    33 *
    32 */
    34 */
    33 class CIpsSosAOSmtpAgent : 
    35 //<Qmail>
       
    36 NONSHARABLE_CLASS (CIpsSosAOSmtpAgent) : 
       
    37 //</Qmail>
    34     public CActive
    38     public CActive
    35     {
    39     {
    36     public:
    40     public:
    37         /**
    41         /**
    38         * Two phased constructor
    42         * Two phased constructor
    51         /**
    55         /**
    52         * Destructor
    56         * Destructor
    53         */
    57         */
    54         virtual ~CIpsSosAOSmtpAgent();
    58         virtual ~CIpsSosAOSmtpAgent();
    55         
    59         
       
    60         
    56         virtual void DoCancel();
    61         virtual void DoCancel();
       
    62         
    57         virtual void RunL();
    63         virtual void RunL();
    58         
    64         //<Qmail>
       
    65         /**
       
    66          * CMsvSession event callback 
       
    67          */
    59         void HandleSessionEventL(    
    68         void HandleSessionEventL(    
    60             MMsvSessionObserver::TMsvSessionEvent aEvent,
    69             MMsvSessionObserver::TMsvSessionEvent aEvent,
    61             TAny* aArg1, 
    70             TAny* aArg1, 
    62             TAny* aArg2, 
    71             TAny* aArg2, 
    63             TAny* aArg3 );
    72             TAny* aArg3 );
    64             
    73             
       
    74         /**
       
    75          * Tries to send messages from outbox
       
    76          */
    65         void EmptyOutboxNowL( TMsvId aMessage );
    77         void EmptyOutboxNowL( TMsvId aMessage );
       
    78 		//</Qmail>
    66         
    79         
    67     private:
    80     private:
    68         /**
    81         /**
    69         * Constructor
    82         * Constructor
    70         */
    83         */
    74         /**
    87         /**
    75         * ConstructL
    88         * ConstructL
    76         * Second phase constructor
    89         * Second phase constructor
    77         */
    90         */
    78         void ConstructL();    
    91         void ConstructL();    
    79 
    92 		//<Qmail>
       
    93         /**
       
    94          * Creates needed internal data
       
    95          */
    80         void CreateInternalDataL( );
    96         void CreateInternalDataL( );
    81         
    97         
       
    98         /**
       
    99          * Releases internal resources
       
   100          */
    82         void ReleaseInternalData( );
   101         void ReleaseInternalData( );
       
   102 		//</Qmail>
    83         
   103         
    84         
   104         
    85     private:
   105     private:
    86 
   106 
    87 
   107 
    88         //data
   108         //data
    89     private:
   109     private:
    90 
   110 
    91        CMsvSession& iSession;
   111        CMsvSession& iSession;
    92 	
   112 		//<Qmail>
    93        CIpsPlgSmtpOperation* iOperation;
   113        CIpsPlgSmtpOperation* iOperation;//owned
       
   114 	  
    94 
   115 
    95        CIpsSetDataApi* iSettingsApi;
   116        //</QMail>
    96        
       
    97        TInt iError;
   117        TInt iError;
    98        
   118        
    99     };
   119     };
   100 
   120 
   101 #endif /* __IPSSOSAOSMTPAGENT_H__ */
   121 #endif /* __IPSSOSAOSMTPAGENT_H*/
   102 //EOF
   122 //EOF