|
1 /* |
|
2 * Copyright (c) 2007-2008 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: For month view of calendar application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CALENMONTHVIEW_H |
|
21 #define CALENMONTHVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "calennativeview.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CCalenMonthContainer; |
|
28 class CAknNavigationDecorator; |
|
29 |
|
30 // CLASS DEFINITIONS |
|
31 /** |
|
32 * For Month View of calendar application |
|
33 */ |
|
34 NONSHARABLE_CLASS( CCalenMonthView ) : public CCalenNativeView |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 IMPORT_C static CCalenMonthView* NewL( MCalenServices& aServices ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CCalenMonthView(); |
|
46 |
|
47 public: // New function |
|
48 void SetStatusPaneFromActiveContextL(); |
|
49 |
|
50 private: // New function |
|
51 /** |
|
52 * C++ constructor. |
|
53 */ |
|
54 CCalenMonthView( MCalenServices& aServices ); |
|
55 |
|
56 /** |
|
57 * By default Symbian OS constructor is private. |
|
58 */ |
|
59 void ConstructL(); |
|
60 |
|
61 public: // From CCalenView |
|
62 virtual TNextPopulationStep ActiveStepL(); |
|
63 virtual void CancelPopulation(); |
|
64 virtual TCyclePosition CyclePosition() const; |
|
65 virtual const TDesC& LocalisedViewNameL( CCalenView::TViewName aViewName ); |
|
66 virtual CGulIcon* CCalenMonthView::ViewIconL() const; |
|
67 |
|
68 protected: // From CCalenNativeView |
|
69 /** |
|
70 * Clears view specific data |
|
71 */ |
|
72 virtual void ClearViewSpecificDataL(); |
|
73 |
|
74 /** |
|
75 * Updates preview pane/preview popup |
|
76 */ |
|
77 void UpdatePreviewPaneL(); |
|
78 |
|
79 /** |
|
80 * Hides preview pane/preview popup |
|
81 */ |
|
82 void HidePreviewPane(); |
|
83 |
|
84 private: // From CCalenView |
|
85 /** |
|
86 * From CCalenView CCalenView::DoActivateL() calls DoActivateImplL() |
|
87 */ |
|
88 void DoActivateImplL( const TVwsViewId& aPrevViewId, |
|
89 TUid aCustomMessageId, |
|
90 const TDesC8& aCustomMessage ); |
|
91 |
|
92 /** |
|
93 * From CCalenView |
|
94 * CCalenView::DoDeactivateL() calls DoDeactivateImplL() |
|
95 */ |
|
96 void DoDeactivateImpl(); |
|
97 |
|
98 /** |
|
99 * From CCalenView Creates CCalenContainer |
|
100 */ |
|
101 CCalenContainer* CreateContainerImplL(); |
|
102 |
|
103 /** |
|
104 * From CCalenView Called when cross over midinight or locale change. |
|
105 */ |
|
106 void OnLocaleChangedL(TInt aReason); |
|
107 |
|
108 /** |
|
109 * From CCalenView Redraw status pane when Form is closed |
|
110 */ |
|
111 void RedrawStatusPaneL(); |
|
112 |
|
113 /** |
|
114 * From CCalenView. Normal command handling method. |
|
115 * needed for MSK. |
|
116 */ |
|
117 void HandleCommandL(TInt aCommand); |
|
118 |
|
119 private: |
|
120 // From CAknView |
|
121 TUid Id() const; |
|
122 |
|
123 /** |
|
124 * Returns ETrue if the vsd is null. |
|
125 */ |
|
126 TBool IsViewSpecificDataNullL(); |
|
127 |
|
128 private: // From MEikMenuObserver |
|
129 /** |
|
130 * From MEikMenuObserver Changes MenuPane dynamically |
|
131 */ |
|
132 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
133 |
|
134 private: // Data |
|
135 |
|
136 enum TPopulationStep |
|
137 { |
|
138 ENothingDone, |
|
139 ESizeChanged, |
|
140 ERequestedInstanceView, |
|
141 ESetIndicatorNext, |
|
142 ESetFocusNext, |
|
143 EPopulationDone |
|
144 }; |
|
145 TPopulationStep iPopulationStep; |
|
146 // view specific data |
|
147 TTime iDate; |
|
148 }; |
|
149 |
|
150 #endif //CALENMONTHVIEW_H |
|
151 |
|
152 |
|
153 // End of File |