emailservices/emailstore/base_plugin/inc/baseplugindelayedopsprivate.h
changeset 20 ecc8def7944a
parent 18 578830873419
child 23 2dc6caa42ec3
equal deleted inserted replaced
18:578830873419 20:ecc8def7944a
    17 #ifndef BASEPLUGINDELAYEDOPSPRIVATE_H
    17 #ifndef BASEPLUGINDELAYEDOPSPRIVATE_H
    18 #define BASEPLUGINDELAYEDOPSPRIVATE_H
    18 #define BASEPLUGINDELAYEDOPSPRIVATE_H
    19 
    19 
    20 
    20 
    21 #include "baseplugindelayedops.h"
    21 #include "baseplugindelayedops.h"
    22 
    22 #include "nestedao.h"
    23 
    23 
    24 /**
    24 /**
    25  * Lets the user enqueue and dequeue asynchronous jobs for handling
    25  * Lets the user enqueue and dequeue asynchronous jobs for handling
    26  * plugin-related actions. 
    26  * plugin-related actions. 
    27  */
    27  */
    68 
    68 
    69 
    69 
    70 /**
    70 /**
    71  * 
    71  * 
    72  */
    72  */
    73 NONSHARABLE_CLASS( CDelayedDeleteMessagesOp ) : public CDelayedOp
    73 NONSHARABLE_CLASS( CDelayedDeleteMessagesOp ) : public CDelayedOp, public MDeletionHandler
    74     {
    74     {
    75 
    75 
    76 public:
    76 public:
    77 
    77 
    78     static CDelayedDeleteMessagesOp* NewLC(
    78     static CDelayedDeleteMessagesOp* NewLC(
    87 
    87 
    88     virtual ~CDelayedDeleteMessagesOp();
    88     virtual ~CDelayedDeleteMessagesOp();
    89 
    89 
    90     //CDelayedOp::ExecuteOpL
    90     //CDelayedOp::ExecuteOpL
    91     virtual void ExecuteOpL();
    91     virtual void ExecuteOpL();
       
    92     
       
    93     //From MDeletionHandler
       
    94     //Used to delete messages in chunks starting from aStartIndex
       
    95     TBool DeleteMessagesInChunksL( TInt aStartIndex );
    92     
    96     
    93 private:
    97 private:
    94 
    98 
    95     void ConstructL( const RArray<TFSMailMsgId>& aMessages );
    99     void ConstructL( const RArray<TFSMailMsgId>& aMessages );
    96     void ConstructL( TMsgStoreId aMsgId );
   100     void ConstructL( TMsgStoreId aMsgId );
   106     
   110     
   107     TMsgStoreId iMailBoxId;
   111     TMsgStoreId iMailBoxId;
   108     TMsgStoreId iFolderId;
   112     TMsgStoreId iFolderId;
   109     RArray<TMsgStoreId> iMessages;
   113     RArray<TMsgStoreId> iMessages;
   110     TBool iImmediateDelete;
   114     TBool iImmediateDelete;
   111     
   115     TState iState;
   112     __LOG_DECLARATION
   116     __LOG_DECLARATION
   113     };
   117     };
   114 
   118 
   115 
   119 
   116 /**
   120 /**
   171     TBool iStepOne;
   175     TBool iStepOne;
   172     
   176     
   173     __LOG_DECLARATION
   177     __LOG_DECLARATION
   174     };
   178     };
   175 
   179 
   176 
   180 //<qmail>
   177 /**
   181 /**
   178  * 
   182  * 
   179  */
   183  */
   180 NONSHARABLE_CLASS( CDelayedMessageStorerOp ) : public CDelayedOp
   184 NONSHARABLE_CLASS( CDelayedMessageStorerOp ) : public CDelayedOp
   181     {
   185     {
   272     MFSMailRequestObserver& iOperationObserver;
   276     MFSMailRequestObserver& iOperationObserver;
   273     TInt iRequestId;
   277     TInt iRequestId;
   274 
   278 
   275     __LOG_DECLARATION
   279     __LOG_DECLARATION
   276     };
   280     };
       
   281 //</qmail>
       
   282 
   277 #endif // BASEPLUGINDELAYEDOPSPRIVATE_H
   283 #endif // BASEPLUGINDELAYEDOPSPRIVATE_H