ipsservices/ipssosplugin/inc/ipsplgbaseoperation.h
branchRCL_3
changeset 24 d189ee25cf9d
parent 8 e1b6206813b4
child 25 3533d4323edc
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
    16 */
    16 */
    17 
    17 
    18 #ifndef IPSPLGBASEOPERATION_H
    18 #ifndef IPSPLGBASEOPERATION_H
    19 #define IPSPLGBASEOPERATION_H
    19 #define IPSPLGBASEOPERATION_H
    20 
    20 
    21 #include "cfsmailcommon.h" // for TFSMailMsgId, TFSProgress
    21 // <qmail> CFSMailCommon include not needed
    22 
    22 
    23 class CMsvOperation;
    23 class CMsvOperation;
    24 
    24 
    25 /**
    25 /**
    26 * class CIpsPlgBaseOperation
    26 * class CIpsPlgBaseOperation
    27 *
    27 *
    28 * Common base class for email online operations.
    28 * Common base class for email online operations.
    29 */
    29 */
    30 class CIpsPlgBaseOperation : public CMsvOperation
    30 NONSHARABLE_CLASS ( CIpsPlgBaseOperation ) : public CMsvOperation
    31     {
    31     {
    32 public:
    32 public:
    33     /**
       
    34     *
       
    35     */
       
    36     virtual ~CIpsPlgBaseOperation();
    33     virtual ~CIpsPlgBaseOperation();
    37 
    34 
    38     /**
    35 	// <qmail> ProgressL function has been removed
    39     *
       
    40     */
       
    41     virtual const TDesC8& ProgressL()=0;
       
    42 
    36 
    43     /**
    37     /**
    44     * For reporting if DoRunL leaves
    38     * For reporting if DoRunL leaves
       
    39     * All operations must implement this
    45     */
    40     */
    46     virtual const TDesC8& GetErrorProgressL(TInt aError) = 0;
    41     virtual const TDesC8& GetErrorProgressL(TInt aError) = 0;
    47 
    42 
    48     /**
    43     /**
    49     * 
    44     * Returns pending asynchronous request status to caller
       
    45     * All operations must implement this
    50     */
    46     */
    51     virtual TFSProgress GetFSProgressL() const = 0;
    47     virtual TFSProgress GetFSProgressL() const = 0;
    52 
    48 
    53     /**
    49     /**
    54     *
    50     * returns request id
       
    51     * (given by caller during instantiation)
       
    52     * @return request id
    55     */
    53     */
    56 	TInt FSRequestId() const;
    54 	TInt FSRequestId() const;
    57 	
    55 	
    58 	/**
    56 	/**
    59 	*
    57 	* returns mailbox id that this operation is related to
       
    58 	* (given by caller during instantiation)
    60 	*/
    59 	*/
    61 	TFSMailMsgId FSMailboxId() const;
    60 	TFSMailMsgId FSMailboxId() const;
    62     
    61 
       
    62 // <qmail>    
    63     /**
    63     /**
    64     *
    64     * All concrete derived classes must have a type identifier
       
    65     * @return operation type
    65     */
    66     */
    66     virtual TInt IpsOpType() const;
    67     virtual TIpsOpType IpsOpType() const = 0;
       
    68 // </qmail>
    67 	
    69 	
    68 protected:
    70 protected:
    69 
    71 
    70     /**
    72 	/**
    71     * C++ constructor
    73     * C++ constructor
    72     */
    74     */
    73     // Construction.
    75     // <qmail> priority parameter has been removed
    74     CIpsPlgBaseOperation(
    76     CIpsPlgBaseOperation(
    75         CMsvSession& aMsvSession,
    77         CMsvSession& aMsvSession,
    76         TInt aPriority,
       
    77         TRequestStatus& aObserverRequestStatus,
    78         TRequestStatus& aObserverRequestStatus,
    78         TInt aFSRequestId,
    79         TInt aFSRequestId,
    79         TFSMailMsgId aFSMailboxId );
    80         TFSMailMsgId aFSMailboxId );
    80 
    81 
       
    82 //<qmail> DoCancel, RunL, RunError functions have been removed
    81 
    83 
    82     /**
       
    83     * From CActive
       
    84     */
       
    85     virtual void DoCancel()=0;
       
    86 
       
    87     /**
       
    88     * From CActive
       
    89     */
       
    90     virtual void RunL()=0;
       
    91 
       
    92     /**
       
    93     * From CActive
       
    94     */
       
    95     virtual TInt RunError( TInt aError )=0;
       
    96 
       
    97         
       
    98 protected:
    84 protected:
    99         
       
   100     TInt            iFSRequestId;
    85     TInt            iFSRequestId;
   101     TFSMailMsgId    iFSMailboxId;
    86     TFSMailMsgId    iFSMailboxId;
   102         
    87     };
   103 
    88 
   104     };
    89 #endif // IPSPLGBASEOPERATION_H
   105 #endif//IPSPLGBASEOPERATION_H