|
1 /* |
|
2 * Copyright (c) 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: Missed Alarm View Declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CALENDUMMYVIEW_H |
|
20 #define CALENDUMMYVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknview.h> |
|
24 #include <AiwCommon.h> |
|
25 #include <calennotificationhandler.h> |
|
26 |
|
27 // user includes |
|
28 #include "calennativeview.h" |
|
29 |
|
30 // forward declaration |
|
31 class CCalenDummyViewContainer; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * CCalenDummyView class. |
|
36 * Derived from CAknView. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CCalenDummyView ) : public CCalenNativeView |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @return CCalenDummyView* |
|
45 */ |
|
46 IMPORT_C static CCalenDummyView* NewL(MCalenServices& aServices); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CCalenDummyView(); |
|
52 |
|
53 public: // From CCalenView |
|
54 |
|
55 /** |
|
56 * View population mechanism |
|
57 */ |
|
58 virtual TNextPopulationStep ActiveStepL(); |
|
59 |
|
60 /** |
|
61 * Cancel view population |
|
62 */ |
|
63 virtual void CancelPopulation(); |
|
64 |
|
65 /** |
|
66 * Returns view's cycle position |
|
67 */ |
|
68 virtual TCyclePosition CyclePosition() const; |
|
69 |
|
70 /** |
|
71 * Provides view name |
|
72 */ |
|
73 virtual const TDesC& LocalisedViewNameL(CCalenView::TViewName aViewName); |
|
74 |
|
75 /** |
|
76 * Returns view icon |
|
77 */ |
|
78 virtual CGulIcon* CCalenDummyView::ViewIconL() const; |
|
79 |
|
80 protected: // From CCalenNativeView |
|
81 |
|
82 /** |
|
83 * Clear view specific data |
|
84 */ |
|
85 virtual void ClearViewSpecificDataL(); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * second phase construction |
|
91 */ |
|
92 void ConstructL(); |
|
93 |
|
94 /** |
|
95 * C++ constructor. |
|
96 */ |
|
97 CCalenDummyView(MCalenServices& aServices); |
|
98 |
|
99 protected: |
|
100 |
|
101 /** |
|
102 * From CCalenView Second phase DoActivateL |
|
103 */ |
|
104 void DoActivateImplL( const TVwsViewId& aPrevViewId, |
|
105 TUid aCustomMessageId, |
|
106 const TDesC8& aCustomMessage ); |
|
107 |
|
108 /** |
|
109 * From CCalenView Second phase DoDeactivate |
|
110 */ |
|
111 void DoDeactivateImpl(); |
|
112 |
|
113 /** |
|
114 * From CCalenView. Called when locale was changed and |
|
115 * time was crossed over |
|
116 */ |
|
117 void OnLocaleChangedL(TInt aReason); |
|
118 |
|
119 public: // From CCalenView |
|
120 |
|
121 /** |
|
122 * Redraw status pane when Form is closed |
|
123 */ |
|
124 void RedrawStatusPaneL(); |
|
125 |
|
126 /** |
|
127 * From CCalenView Creates CCalenContainer |
|
128 **/ |
|
129 CCalenContainer* CreateContainerImplL(); |
|
130 |
|
131 /** |
|
132 * From CCalenView. Normal command handling method. |
|
133 * needed for MSK. |
|
134 */ |
|
135 void HandleCommandL(TInt aCommand); |
|
136 |
|
137 private: |
|
138 |
|
139 /** |
|
140 * Return UID of CCalenDummyView |
|
141 * @return UID of CCalenDummyView, KCalenMissedAlarmsView |
|
142 */ |
|
143 TUid Id() const; |
|
144 |
|
145 /** |
|
146 * Returns pointer to the missed alarm container |
|
147 * @return CCalenMissedAlarmsContainer* |
|
148 */ |
|
149 CCalenDummyViewContainer* Container(); |
|
150 |
|
151 private: //data members |
|
152 |
|
153 enum TPopulationStep |
|
154 { |
|
155 ENothingDone, |
|
156 EPopulationDone |
|
157 }; |
|
158 TPopulationStep iPopulationStep; |
|
159 }; |
|
160 |
|
161 #endif // CALENDUMMYVIEW_H |