meetingrequest/mrgui/inc/cesmrtrackingviewdialog.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 *  Description : ESMR tracking viewe dialog
       
    15 *  Version     : %version: tr1sido#4 %
       
    16 *
       
    17 */
       
    18 #ifndef CESMRTRACKINGVIEWDIALOG_H
       
    19 #define CESMRTRACKINGVIEWDIALOG_H
       
    20 
       
    21 // SYSTEM INCLUDE
       
    22 #include <AknDialog.h>
       
    23 #include <caluser.h>
       
    24 
       
    25 #include "mesmruibase.h"
       
    26 #include "mesmrresponseobserver.h"
       
    27 #include "resmrstatic.h"
       
    28 #include "mesmrfieldeventobserver.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CESMRPolicy;
       
    32 class MAgnEntryUiCallback;
       
    33 class MESMRCalEntry;
       
    34 class CESMRView;
       
    35 class CAiwServiceHandler;
       
    36 
       
    37 class CESMRTrackingViewDialog : public CAknDialog,
       
    38                                 public MESMRUiBase,
       
    39                                 public MESMRFieldEventObserver
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      *
       
    46      */
       
    47     static CESMRTrackingViewDialog* NewL
       
    48             (CESMRPolicy* aPolicy,
       
    49              MESMRCalEntry& aEntry,
       
    50              MAgnEntryUiCallback& aCallback
       
    51             );
       
    52 
       
    53     /*
       
    54      * Destructor.
       
    55      */
       
    56     ~CESMRTrackingViewDialog();
       
    57 
       
    58 public: // From CAknDialog
       
    59     SEikControlInfo CreateCustomControlL( TInt aType );
       
    60     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
       
    61     TBool OkToExitL (TInt aButtonId);
       
    62     void ProcessCommandL( TInt aCommand );
       
    63     void DynInitMenuPaneL(
       
    64             TInt aResourceId,
       
    65             CEikMenuPane* aMenuPane );
       
    66     void ActivateL();
       
    67 
       
    68 public: // From MESUIBase
       
    69     TInt ExecuteViewLD();
       
    70 
       
    71 protected: // From MESMRFieldEventObserver
       
    72     
       
    73     void HandleFieldEventL( const MESMRFieldEvent& aEvent );
       
    74     
       
    75 private: // Implementation
       
    76     void DoProcessCommandL( TInt aCommand );
       
    77     CESMRTrackingViewDialog(MESMRCalEntry& aEntry, MAgnEntryUiCallback& aCallback);
       
    78     void ConstructL( CESMRPolicy* aPolicy );
       
    79     TInt CountAttendeesL(CCalAttendee::TCalRole aRole);
       
    80     void SortAttendeesL();
       
    81     void HandlePrintCommandL(TInt aCommand);
       
    82 
       
    83 private:
       
    84 
       
    85     /**
       
    86      * Own:Feature manager initialization flag
       
    87      */
       
    88     TBool iFeatureManagerInitialized;
       
    89 
       
    90     /**
       
    91      * Ref: Policy for building fields and menus
       
    92      */
       
    93     CESMRPolicy* iPolicy;
       
    94 
       
    95     /// Ref: Reference to MESRCalEntry (CCalEntry wrapper)
       
    96     MESMRCalEntry& iEntry;
       
    97 
       
    98     /// Ref: Agn Entry UI callback interface
       
    99     MAgnEntryUiCallback& iCallback;
       
   100 
       
   101     /**
       
   102      * Ref: The only control in this dialog. Fwk deletes.
       
   103      */
       
   104     CESMRView* iView;
       
   105 
       
   106     /// Own: AIW Service handler
       
   107     CAiwServiceHandler* iServiceHandler;
       
   108 
       
   109     /// Own: Static TLS data handler
       
   110     RESMRStatic iESMRStatic;
       
   111     };
       
   112 
       
   113 #endif /*CESMRTRACKINGVIEWDIALOG_H*/
       
   114 
       
   115 // End of File