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