ipsservices/ipssosaoplugin/inc/IpsSosAOSmtpSendWatcher.h
changeset 0 8466d47a6819
child 24 d189ee25cf9d
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Main smpt plugin class
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CIPSSOSAOSMTPSENDWATCHER_H__
       
    20 #define __CIPSSOSAOSMTPSENDWATCHER_H__
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <e32property.h>
       
    25 
       
    26 class CMsvSession;
       
    27 class CIpsSosAOSmtpAgent;
       
    28 
       
    29 /**
       
    30 * CIpsSosAOSmtpSendWatcher
       
    31 *
       
    32 */
       
    33 class CIpsSosAOSmtpSendWatcher : 
       
    34     public CActive
       
    35     {
       
    36     public:
       
    37     
       
    38         /**
       
    39         * Symbian OS NewL function
       
    40         * @return CIpsSosAOSmtpSendWatcher*, self pointer
       
    41         */
       
    42         static CIpsSosAOSmtpSendWatcher* NewL( 
       
    43             TInt aPriority,
       
    44             CMsvSession& aSession );
       
    45 
       
    46 
       
    47         /**
       
    48         * destructor
       
    49         */
       
    50         virtual ~CIpsSosAOSmtpSendWatcher();
       
    51 
       
    52     private:
       
    53     
       
    54         /**
       
    55         * Constructor
       
    56         * @param aPriority active object priority
       
    57         */
       
    58         CIpsSosAOSmtpSendWatcher( 
       
    59             TInt aPriority );
       
    60 
       
    61         /**
       
    62         * ConstructL
       
    63         * Symbian OS second phase constructor.
       
    64         */
       
    65 		void ConstructL( CMsvSession& aSession );
       
    66 
       
    67     public:
       
    68 
       
    69         /**
       
    70         * At
       
    71         * @param const TTime&, time when to complete 
       
    72         */
       
    73 		void StartWatch();
       
    74 
       
    75 
       
    76 	protected:
       
    77 
       
    78         /**
       
    79         * DoCancel
       
    80         * From CActive
       
    81         */
       
    82 		virtual void DoCancel();
       
    83 
       
    84         /**
       
    85         * RunL
       
    86         * From CActive
       
    87         */
       
    88 		virtual void RunL();
       
    89 		
       
    90 		/**
       
    91 		* Function to handle error during running the operation
       
    92 		* @return KErrNone, when error has been handled
       
    93 		*/
       
    94 		virtual TInt RunError( TInt aError );
       
    95 
       
    96 	protected: // Data
       
    97 	
       
    98 	    CIpsSosAOSmtpAgent* iAgent;
       
    99         
       
   100         RProperty iProperty;
       
   101     };
       
   102     
       
   103 #endif /* __CIPSSOSAOSMTPSENDWATCHER_H__ */ 
       
   104 
       
   105 //EOF