meetingrequest/mrtasks/inc/mesmrtaskextension.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 //<cmail>
    23 //<cmail>
    24 #include "esmrdef.h"
    24 #include "esmrdef.h"
    25 //</cmail>
    25 //</cmail>
    26 
    26 
    27 class MESMRMeetingRequestEntry;
    27 class MESMRCalEntry;
    28 
    28 
    29 /**
    29 /**
    30  * MESMRTaskExtension is extension API for CMRUtils.
    30  * MESMRTaskExtension is extension API for CMRUtils.
    31  * MESMRTaskExtension defines methods for executing ES MR MR related
    31  * MESMRTaskExtension defines methods for executing ES MR MR related
    32  * functionality.
    32  * functionality.
    65      * @param aEntry Reference to entry
    65      * @param aEntry Reference to entry
    66      * @see TESMRCommand
    66      * @see TESMRCommand
    67      */
    67      */
    68     virtual void SendAndStoreResponseL(
    68     virtual void SendAndStoreResponseL(
    69             TESMRCommand aCommand,
    69             TESMRCommand aCommand,
    70             MESMRMeetingRequestEntry& aEntry ) = 0;
    70             MESMRCalEntry& aEntry ) = 0;
    71 
    71 
    72     /**
    72     /**
    73      * Sends and stores MR . Command needs to be one of the
    73      * Sends and stores MR . Command needs to be one of the
    74      * following:
    74      * following:
    75      *  - EESMRCmdSendMR
    75      *  - EESMRCmdSendMR
    81      * @param aEntry Reference to entry
    81      * @param aEntry Reference to entry
    82      * @see TESMRCommand
    82      * @see TESMRCommand
    83      */
    83      */
    84     virtual void SendAndStoreMRL(
    84     virtual void SendAndStoreMRL(
    85             TESMRCommand aCommand,
    85             TESMRCommand aCommand,
    86             MESMRMeetingRequestEntry& aEntry ) = 0;
    86             MESMRCalEntry& aEntry ) = 0;
    87 
       
    88     /**
       
    89      * Delete MR from local calendar DB. Command needs to be one of the
       
    90      * following:
       
    91      *  - EESMRCmdDeleteMR
       
    92      *
       
    93      * @param aCommand Command to be executed
       
    94      * @param aEntry Reference to entry
       
    95      * @see TESMRCommand
       
    96      */
       
    97     virtual void DeleteMRFromLocalDBL(
       
    98             TESMRCommand aCommand,
       
    99             MESMRMeetingRequestEntry& aEntry ) = 0;
       
   100 
    87 
   101     /**
    88     /**
   102      * Deletes MR from local calendar DB. Method also sends either cancellation
    89      * Deletes MR from local calendar DB. Method also sends either cancellation
   103      * or decline message.
    90      * or decline message.
   104      *
    91      *
   109      * @param aEntry Reference to entry
    96      * @param aEntry Reference to entry
   110      * @see TESMRCommand
    97      * @see TESMRCommand
   111      */
    98      */
   112     virtual void DeleteAndSendMRL(
    99     virtual void DeleteAndSendMRL(
   113             TESMRCommand aCommand,
   100             TESMRCommand aCommand,
   114             MESMRMeetingRequestEntry& aEntry ) = 0;
   101             MESMRCalEntry& aEntry ) = 0;
   115 
   102 
   116     /**
   103     /**
   117      * Stores MR to local calendar DB.
   104      * Stores Cal Event to local calendar DB.
   118      *
   105      *
   119      * Command needs to be one of the following:
   106      * Command needs to be one of the following:
   120      *  - EESMRCmdSaveMR
   107      *  - EESMRCmdSaveMR
   121      *
   108      *
   122      * @param aCommand Command to be executed
   109      * @param aCommand Command to be executed
   123      * @param aEntry Reference to entry
   110      * @param aEntry Reference to entry
   124      * @see TESMRCommand
   111      * @see TESMRCommand
   125      */
   112      */
   126     virtual void StoreMRToLocalDBL(
   113     virtual void StoreEntryToLocalDBL(
   127             TESMRCommand aCommand,
   114             TESMRCommand aCommand,
   128             MESMRMeetingRequestEntry& aEntry ) = 0;
   115             MESMRCalEntry& aEntry ) = 0;
   129 
   116                         
   130     /**
   117     /**
   131      * Forwards MR as email. Email editor is launched with pre-filled
   118      * Forwards MR as email. Email editor is launched with pre-filled
   132      * email message.
   119      * email message.
   133      *
   120      *
   134      * Command needs to be one of the following:
   121      * Command needs to be one of the following:
   138      * @param aEntry Reference to entry
   125      * @param aEntry Reference to entry
   139      * @see TESMRCommand
   126      * @see TESMRCommand
   140      */
   127      */
   141      virtual void ForwardMRAsEmailL(
   128      virtual void ForwardMRAsEmailL(
   142             TESMRCommand aCommand,
   129             TESMRCommand aCommand,
   143             MESMRMeetingRequestEntry& aEntry ) = 0;
   130             MESMRCalEntry& aEntry ) = 0;
   144 
   131 
   145      /**
   132      /**
   146       * Creates email reply for meeting request.
   133       * Creates email reply for meeting request.
   147       * Email editor is launched with pre-filled
   134       * Email editor is launched with pre-filled
   148       * email message.
   135       * email message.
   154       * @param aEntry Reference to entry
   141       * @param aEntry Reference to entry
   155       * @see TESMRCommand
   142       * @see TESMRCommand
   156       */
   143       */
   157      virtual void ReplyAsEmailL(
   144      virtual void ReplyAsEmailL(
   158             TESMRCommand aCommand,
   145             TESMRCommand aCommand,
   159             MESMRMeetingRequestEntry& aEntry ) = 0;
   146             MESMRCalEntry& aEntry ) = 0;
       
   147      
       
   148      /**
       
   149       * Deletes calendar event from local calendar DB.
       
   150       *
       
   151       * Command needs to be one of the following:
       
   152       *  - EESMRCmdCalEntryUIDelete
       
   153       *  - EESMRCmdDeleteMR
       
   154       *  
       
   155       * @param aCommand Command to be executed
       
   156       * @param aEntry Reference to entry
       
   157       * @see TESMRCommand
       
   158       */      
       
   159      virtual void DeleteEntryFromLocalDBL(
       
   160              TESMRCommand aCommand,
       
   161              MESMRCalEntry& aEntry ) = 0;
       
   162      
       
   163      /**
       
   164       * Marks to-do event as done.
       
   165       *
       
   166       * Command needs to be one of the following:
       
   167       *  - EESMRCmdTodoMarkAsDone
       
   168       *
       
   169       * @param aCommand Command to be executed
       
   170       * @param aEntry Reference to entry
       
   171       * @see TESMRCommand
       
   172       */      
       
   173      virtual void MarkTodoAsDoneL(
       
   174              TESMRCommand aCommand,
       
   175              MESMRCalEntry& aEntry ) = 0;
       
   176      
       
   177      /**
       
   178       * Marks to-do event as not done.
       
   179       *
       
   180       * Command needs to be one of the following:
       
   181       *  - EESMRCmdTodoMarkAsNotDone
       
   182       *
       
   183       * @param aCommand Command to be executed
       
   184       * @param aEntry Reference to entry
       
   185       * @see TESMRCommand
       
   186       */      
       
   187      virtual void MarkTodoAsNotDoneL(
       
   188              TESMRCommand aCommand,
       
   189              MESMRCalEntry& aEntry ) = 0 ;
       
   190      
       
   191     /**
       
   192      * Moves entry to current database
       
   193      * 
       
   194      * Command needs to be one of following:
       
   195      *  - EESMRCmdSaveMR
       
   196      *  - EESMRCmdCalEntryUISave
       
   197      * @param aCommand Command to be executed
       
   198      * @param aEntry Reference to entry
       
   199      * @see TESMRCommand
       
   200      */      
       
   201     virtual void MoveEntryToCurrentDBL(
       
   202          TESMRCommand aCommand,
       
   203          MESMRCalEntry& aEntry ) = 0 ;
   160     };
   204     };
   161 
   205 
   162 #include "mesmrtaskextension.inl"
   206 #include "mesmrtaskextension.inl"
   163 
   207 
   164 #endif  // MESMRTASKEXTENSION_H
   208 #endif  // MESMRTASKEXTENSION_H