meetingrequest/mrviewer/inc/cesmrviewerctrl.h
branchRCL_3
changeset 33 da5135c61bad
parent 0 8466d47a6819
child 24 b5fbb9b25d57
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
    18 
    18 
    19 #ifndef CESMRVIEWERCTRL_H
    19 #ifndef CESMRVIEWERCTRL_H
    20 #define CESMRVIEWERCTRL_H
    20 #define CESMRVIEWERCTRL_H
    21 
    21 
    22 //  INCLUDES
    22 //  INCLUDES
    23 #include <MAgnEntryUi.h>
    23 #include <magnentryui.h>
    24 #include <CMRUtils.h>
    24 #include <cmrutils.h>
    25 #include <e32base.h>
    25 #include <e32base.h>
       
    26 #include "mmrinfoprovider.h"
    26 
    27 
    27 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    28 class CCalEntry;
    29 class CCalEntry;
    29 class TCoeHelpContext;
    30 class TCoeHelpContext;
    30 class CMRDialogBase;
    31 class CMRDialogBase;
    31 class CESMRUtils;
    32 class CESMRUtils;
    32 class CMRMailboxUtils;
    33 class CMRMailboxUtils;
    33 class CActiveSchedulerWait;
    34 class CActiveSchedulerWait;
    34 class CESMRUiFactory;
    35 class CESMRUiFactory;
    35 class CESMREntryProcessor;
    36 class CMREntryProcessor;
    36 class MESMRTaskExtension;
    37 class MESMRTaskExtension;
    37 class CESMRPolicyManager;
    38 class CESMRPolicyManager;
       
    39 class MESMRCalDbMgr;
    38 
    40 
    39 // CLASS DECLARATION
    41 // CLASS DECLARATION
    40 
    42 
    41 /**
    43 /**
    42  * ESMRVIEWER controller is responsible for control logic and UI view
    44  * ESMRVIEWER controller is responsible for control logic and UI view
    43  * creation and execution.
    45  * creation and execution.
    44  */
    46  */
    45 NONSHARABLE_CLASS(CESMRViewerController)  :
    47 NONSHARABLE_CLASS(CESMRViewerController)  :
    46         public CBase,
    48         public CBase,
    47         public MAgnEntryUiCallback,
    49         public MAgnEntryUiCallback,
    48         public MMRUtilsObserver
    50         public MMRUtilsObserver,
       
    51         public MMRInfoProvider
    49     {
    52     {
    50 public:  // Constructors and destructor
    53 public:  // Constructors and destructor
    51     /**
    54     /**
    52     * Two-phased constructor.
    55     * Two-phased constructor.
    53     */
    56     */
    76     void HandleOperation(
    79     void HandleOperation(
    77             TInt aType,
    80             TInt aType,
    78             TInt aPercentageCompleted,
    81             TInt aPercentageCompleted,
    79             TInt aStatus );
    82             TInt aStatus );
    80 
    83 
    81 private: // Constructors
    84 protected: // From MMRInfoProvider
       
    85     MMRPolicyProvider& PolicyProvider() const;
       
    86     MESMRCalEntry* EntryL();
       
    87     
       
    88 private: // Constructors and implementation
    82     CESMRViewerController(
    89     CESMRViewerController(
    83             RPointerArray<CCalEntry>& aEntries,
    90             RPointerArray<CCalEntry>& aEntries,
    84             const MAgnEntryUi::TAgnEntryUiInParams& aParams,
    91             const MAgnEntryUi::TAgnEntryUiInParams& aParams,
    85             MAgnEntryUi::TAgnEntryUiOutParams& aOutParams,
    92             MAgnEntryUi::TAgnEntryUiOutParams& aOutParams,
    86             MAgnEntryUiCallback& aCallback );
    93             MAgnEntryUiCallback& aCallback );
    87     void ConstructL(const TDesC8& aMtmuid);
    94     void ConstructL(const TDesC8& aMtmuid);
    88     TInt ProcessCommandWithResultInternalL(
    95     TInt ProcessCommandWithResultInternalL(
    89             TInt aCommandId );
    96             TInt aCommandId );
    90     void LaunchUIL();
    97     void LaunchUIL();
    91     void LaunchCorrectOperationModeL();
    98     void LaunchCorrectOperationModeL();
       
    99     TInt ProcessDefaultCommandL( TInt aCommandId );
       
   100     TInt ProcessMeetingRequestCommandL( TInt aCommandId );
       
   101     void ChangeEntryTypeL( TInt aCommandId );
       
   102     void UpdateComparativeEntryInTypeChangeL( const CCalEntry& aOriginalEntry );
       
   103     void CancelAndDeleteMRInEntryTypeChangeL( 
       
   104             CCalEntry& entry, MESMRCalDbMgr& aDbMgr );
    92 
   105 
    93 private: // Data
   106 private: // Data
    94     /// Own: Operation error value
   107     /// Own: Operation error value
    95     TInt iExecutionError;
   108     TInt iExecutionError;
    96     /// Own: Pointer to ESMRUTILS handler
   109     /// Own: Pointer to ESMRUTILS handler
   106     /// Own: MR UTILS syncher
   119     /// Own: MR UTILS syncher
   107     CActiveSchedulerWait* iCtrlSyncher;
   120     CActiveSchedulerWait* iCtrlSyncher;
   108     /// Own: UI factory
   121     /// Own: UI factory
   109     CESMRUiFactory* iGuiFactory;
   122     CESMRUiFactory* iGuiFactory;
   110     /// Ref: Reference to entry processor
   123     /// Ref: Reference to entry processor
   111     CESMREntryProcessor* iEntryProcessor;
   124     CMREntryProcessor* iEntryProcessor;
   112     /// Ref: Reference to task extension
   125     /// Ref: Reference to task extension
   113     MESMRTaskExtension* iTaskExt;
   126     MESMRTaskExtension* iTaskExt;
   114     /// Ref: Reference to policy manager
   127     /// Ref: Reference to policy manager
   115     CESMRPolicyManager* iPolicyMgr;
   128     CESMRPolicyManager* iPolicyMgr;
       
   129     /// Own: Current calendar entry to be handled
       
   130     CCalEntry* iCalEntry;
   116     };
   131     };
   117 
   132 
   118 #endif      // CMRHANDLER_H
   133 #endif      // CMRHANDLER_H
   119 
   134 
   120 // End of File
   135 // End of File