emailservices/emailstore/base_plugin/inc/baseplugindelayedopsprivate.h
branchRCL_3
changeset 19 b13141f05c3d
parent 0 8466d47a6819
child 24 b5fbb9b25d57
equal deleted inserted replaced
17:8592a65ad3fb 19:b13141f05c3d
    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(
    88     virtual ~CDelayedDeleteMessagesOp();
    88     virtual ~CDelayedDeleteMessagesOp();
    89 
    89 
    90     //CDelayedOp::ExecuteOpL
    90     //CDelayedOp::ExecuteOpL
    91     virtual void ExecuteOpL();
    91     virtual void ExecuteOpL();
    92     
    92     
       
    93     //From MDeletionHandler
       
    94     //Used to delete messages in chunks starting from aStartIndex
       
    95     TBool DeleteMessagesInChunksL( TInt aStartIndex );
       
    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 );
    97     
   101     
   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 /**