emailservices/emailstore/base_plugin/inc/baseplugindelayedops.h
branchRCL_3
changeset 16 b5fbb9b25d57
parent 8 e1b6206813b4
child 24 d189ee25cf9d
equal deleted inserted replaced
14:b13141f05c3d 16:b5fbb9b25d57
    66 
    66 
    67 /**
    67 /**
    68  * The base class for the delayed operations. All of the delayed operations must
    68  * The base class for the delayed operations. All of the delayed operations must
    69  * derive from it.
    69  * derive from it.
    70  */
    70  */
    71 class CDelayedOp : public CAsyncOneShot
    71 class CDelayedOp : public CActive
    72     {
    72     {
    73 
    73 
    74 public:
    74 public:
    75     
    75 
    76     IMPORT_C virtual ~CDelayedOp();
    76     IMPORT_C virtual ~CDelayedOp();
    77     
    77     
    78     IMPORT_C void SetContext(
    78     IMPORT_C void SetContext(
    79         CBasePlugin& aPlugin,
    79         CBasePlugin& aPlugin,
    80         MDelayedOpsManager& aManager );
    80         MDelayedOpsManager& aManager );
    81     
    81 
       
    82     IMPORT_C void StartOp();
       
    83 
    82     /**
    84     /**
    83      * Derived classes must implement their asynchronous processing in this
    85      * Derived classes must implement their asynchronous processing in this
    84      * method. The GetPlugin method can only be used from within this method.
    86      * method. The GetPlugin method can only be used from within this method.
       
    87      * Returns boolean: ETrue if op is yielding and needs to be called again, or EFalse if op is done.
    85      */
    88      */
    86     virtual void ExecuteOpL() = 0;
    89     virtual TBool ExecuteOpL() = 0;
    87 
    90 
    88 protected:
    91 protected:
    89     
    92     
    90     IMPORT_C CDelayedOp();
    93     IMPORT_C CDelayedOp();
    91     
    94