25
|
1 |
/*
|
|
2 |
* Copyright (c) 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: e002sa32#7.1.1 %
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
#ifndef CESMRTRACKINGVIEWDIALOG_H
|
|
19 |
#define CESMRTRACKINGVIEWDIALOG_H
|
|
20 |
|
|
21 |
// SYSTEM INCLUDE
|
|
22 |
#include <AknDialog.h>
|
|
23 |
#include <caluser.h>
|
|
24 |
//#include <aknlists.h>
|
|
25 |
|
|
26 |
#include "mesmruibase.h"
|
|
27 |
#include "mesmrresponseobserver.h"
|
|
28 |
#include "resmrstatic.h"
|
|
29 |
|
|
30 |
|
|
31 |
// FORWARD DECLARATIONS
|
|
32 |
class CESMRPolicy;
|
|
33 |
class MAgnEntryUiCallback;
|
|
34 |
class MESMRCalEntry;
|
|
35 |
class CESMRTrackingView;
|
|
36 |
|
|
37 |
class CESMRTrackingViewDialog : public CAknDialog,
|
|
38 |
public MESMRUiBase
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Two-phased constructor.
|
|
44 |
*
|
|
45 |
*/
|
|
46 |
static CESMRTrackingViewDialog* NewL(
|
|
47 |
const CESMRPolicy& aPolicy,
|
|
48 |
MESMRCalEntry& aEntry,
|
|
49 |
MAgnEntryUiCallback& aCallback
|
|
50 |
);
|
|
51 |
|
|
52 |
/*
|
|
53 |
* Destructor.
|
|
54 |
*/
|
|
55 |
~CESMRTrackingViewDialog();
|
|
56 |
|
|
57 |
public: // From CAknDialog
|
|
58 |
SEikControlInfo CreateCustomControlL( TInt aType );
|
|
59 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
|
|
60 |
TBool OkToExitL (TInt aButtonId);
|
|
61 |
void ProcessCommandL( TInt aCommand );
|
|
62 |
void DynInitMenuPaneL(
|
|
63 |
TInt aResourceId,
|
|
64 |
CEikMenuPane* aMenuPane );
|
|
65 |
void ActivateL();
|
|
66 |
|
|
67 |
public: // From MESUIBase
|
|
68 |
TInt ExecuteViewLD();
|
|
69 |
|
|
70 |
public: // Used by tracking vieww
|
|
71 |
|
|
72 |
void HandleListEventL();
|
|
73 |
|
|
74 |
private: // Implementation
|
|
75 |
void DoProcessCommandL( TInt aCommand );
|
|
76 |
CESMRTrackingViewDialog( const CESMRPolicy& aPolicy,
|
|
77 |
MESMRCalEntry& aEntry,
|
|
78 |
MAgnEntryUiCallback& aCallback);
|
|
79 |
void ConstructL();
|
|
80 |
TInt CountAttendeesL(CCalAttendee::TCalRole aRole);
|
|
81 |
void SortAttendeesL();
|
|
82 |
|
|
83 |
private:
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Ref: Policy for building fields and menus
|
|
87 |
*/
|
|
88 |
const CESMRPolicy& iPolicy;
|
|
89 |
|
|
90 |
/// Ref: Reference to MESRCalEntry (CCalEntry wrapper)
|
|
91 |
MESMRCalEntry& iEntry;
|
|
92 |
|
|
93 |
/// Ref: Agn Entry UI callback interface
|
|
94 |
MAgnEntryUiCallback& iCallback;
|
|
95 |
|
|
96 |
/**
|
|
97 |
* Ref: The only control in this dialog. Fwk deletes.
|
|
98 |
*/
|
|
99 |
CESMRTrackingView* iView;
|
|
100 |
|
|
101 |
/// Own: Static TLS data handler
|
|
102 |
RESMRStatic iESMRStatic;
|
|
103 |
};
|
|
104 |
|
|
105 |
#endif /*CESMRTRACKINGVIEWDIALOG_H*/
|
|
106 |
|
|
107 |
// End of File
|