meetingrequest/mrtasks/inc/cesmrtaskextensionimpl.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
    44     {
    44     {
    45 public: // Construction and destruction
    45 public: // Construction and destruction
    46     /**
    46     /**
    47      * Creates and initialzes new CESMRTaskExtenstionImpl object
    47      * Creates and initialzes new CESMRTaskExtenstionImpl object
    48      * Ownership is trasferred to caller.
    48      * Ownership is trasferred to caller.
    49      * @param aCalDbMgr Reference to cal db manager.
    49      *
    50      * @param aMRMailboxUtils Reference to mailbox utilities.
       
    51      * @param aPolicyManager Reference to policy manager.
       
    52      * @param aEntryProcessor Reference to entry processor.
       
    53      * @param aTaskFactory Reference to task factory.
    50      * @param aTaskFactory Reference to task factory.
    54      */
    51      */
    55     IMPORT_C static CESMRTaskExtenstionImpl* NewL(
    52     IMPORT_C static CESMRTaskExtenstionImpl* NewL( MESMRTaskFactory& aTaskFactory );
    56             MESMRCalDbMgr& aCalDBMgr,
       
    57             CMRMailboxUtils& aMRMailboxUtils,
       
    58             CESMRPolicyManager& aPolicyManager,
       
    59             CESMREntryProcessor& aEntryProcessor,
       
    60             MESMRTaskFactory& aTaskFactory );
       
    61 
    53 
    62     /**
    54     /**
    63      * C++ destructor.
    55      * C++ destructor.
    64      */
    56      */
    65     IMPORT_C ~CESMRTaskExtenstionImpl();
    57     IMPORT_C ~CESMRTaskExtenstionImpl();
    66 
    58 
    67 public: // From MESMRTaskExtension
    59 public: // From MESMRTaskExtension
    68     void SendAndStoreResponseL(
    60     void SendAndStoreResponseL(
    69             TESMRCommand aCommand,
    61             TESMRCommand aCommand,
    70             MESMRMeetingRequestEntry& aEntry );
    62             MESMRCalEntry& aEntry );
    71     void SendAndStoreMRL(
    63     void SendAndStoreMRL(
    72             TESMRCommand aCommand,
    64             TESMRCommand aCommand,
    73             MESMRMeetingRequestEntry& aEntry );
    65             MESMRCalEntry& aEntry );
    74     void DeleteMRFromLocalDBL(
       
    75             TESMRCommand aCommand,
       
    76             MESMRMeetingRequestEntry& aEntry );
       
    77     void DeleteAndSendMRL(
    66     void DeleteAndSendMRL(
    78             TESMRCommand aCommand,
    67             TESMRCommand aCommand,
    79             MESMRMeetingRequestEntry& aEntry );
    68             MESMRCalEntry& aEntry );
    80     void StoreMRToLocalDBL(
    69     void StoreEntryToLocalDBL(
    81             TESMRCommand aCommand,
    70             TESMRCommand aCommand,
    82             MESMRMeetingRequestEntry& aEntry );
    71             MESMRCalEntry& aEntry );
    83     void ForwardMRAsEmailL(
    72     void ForwardMRAsEmailL(
    84             TESMRCommand aCommand,
    73             TESMRCommand aCommand,
    85             MESMRMeetingRequestEntry& aEntry );
    74             MESMRCalEntry& aEntry );
    86     void ReplyAsEmailL(
    75     void ReplyAsEmailL(
    87             TESMRCommand aCommand,
    76             TESMRCommand aCommand,
    88             MESMRMeetingRequestEntry& aEntry );
    77             MESMRCalEntry& aEntry );
       
    78     void DeleteEntryFromLocalDBL(
       
    79             TESMRCommand aCommand,
       
    80             MESMRCalEntry& aEntry );
       
    81     void MarkTodoAsDoneL(
       
    82             TESMRCommand aCommand,
       
    83             MESMRCalEntry& aEntry );
       
    84     void MarkTodoAsNotDoneL(
       
    85             TESMRCommand aCommand,
       
    86             MESMRCalEntry& aEntry );
       
    87     void MoveEntryToCurrentDBL(
       
    88             TESMRCommand aCommand,
       
    89             MESMRCalEntry& aEntry );
    89 
    90 
    90 private: // Implementation
    91 private: // Implementation
    91     CESMRTaskExtenstionImpl(
    92     CESMRTaskExtenstionImpl( MESMRTaskFactory& aTaskFactory );
    92             MESMRCalDbMgr& aCalDBMgr,
       
    93             CMRMailboxUtils& aMRMailboxUtils,
       
    94             CESMRPolicyManager& aPolicyManager,
       
    95             CESMREntryProcessor& aEntryProcessor,
       
    96             MESMRTaskFactory& aTaskFactory );
       
    97     void ConstructL();
    93     void ConstructL();
    98     void CreateAndExecuteTaskL(
    94     void CreateAndExecuteTaskL(
    99             TESMRCommand aCommand,
    95             TESMRCommand aCommand,
   100             MESMRMeetingRequestEntry& aEntry );
    96             MESMRCalEntry& aEntry );
   101 
    97 
   102 private: // Data
    98 private: // Data
   103     /**
       
   104     * Cal DB manager
       
   105     * Not own.
       
   106     */
       
   107     MESMRCalDbMgr& iCalDBMgr;
       
   108 
       
   109     /**
       
   110     * Meeting request mailbox utils
       
   111     * Not own.
       
   112     */
       
   113     CMRMailboxUtils& iMRMailboxUtils;
       
   114 
       
   115     /**
       
   116     * ESMR policy manager
       
   117     * Not own.
       
   118     */
       
   119     CESMRPolicyManager& iPolicyManager;
       
   120 
       
   121     /**
       
   122     * MR Entry processor
       
   123     * Not own.
       
   124     */
       
   125     CESMREntryProcessor& iEntryProcessor;
       
   126 
       
   127     /**
    99     /**
   128     * ES MR Task factory
   100     * ES MR Task factory
   129     * Not own.
   101     * Not own.
   130     */
   102     */
   131     MESMRTaskFactory& iTaskFactory;
   103     MESMRTaskFactory& iTaskFactory;