equal
deleted
inserted
replaced
21 #define CALENMULTIDBEDITOR_H |
21 #define CALENMULTIDBEDITOR_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <AknForm.h> |
24 #include <AknForm.h> |
25 #include <gdi.h> |
25 #include <gdi.h> |
|
26 #include <calennotificationhandler.h> |
26 |
27 |
27 class CalenAppUi; |
28 class CalenAppUi; |
28 class CAknNavigationControlContainer; |
29 class CAknNavigationControlContainer; |
29 class CCalenController; |
30 class CCalenController; |
30 class CCalCalendarInfo; |
31 class CCalCalendarInfo; |
|
32 class CCalenMultipleDbUi; |
|
33 class CCalenColourSelectionGrid; |
|
34 |
31 |
35 |
32 /** |
36 /** |
33 * Class defining Map icon picture, derived from CPicture |
37 * Class defining Map icon picture, derived from CPicture |
34 */ |
38 */ |
35 class CDbColorPicture : public CPicture |
39 class CDbColorPicture : public CPicture |
102 public: // New Functions |
106 public: // New Functions |
103 |
107 |
104 /** |
108 /** |
105 * Two-phased constructor. |
109 * Two-phased constructor. |
106 */ |
110 */ |
107 static CCalenMultiDBEditor* NewL( CCalCalendarInfo& aCalendarInfo, |
111 static CCalenMultiDBEditor* NewL(CCalenMultipleDbUi& aMultipleDbui, |
108 CCalenController& aController, TBool aEditFlag); |
112 CCalCalendarInfo& aCalendarInfo, |
|
113 CCalenController& aController, TBool aEditFlag); |
109 |
114 |
110 /** |
115 /** |
111 * From Base class. |
116 * From Base class. |
112 */ |
117 */ |
113 void DynInitMenuPaneL( TInt aResourceId, |
118 void DynInitMenuPaneL( TInt aResourceId, |
122 protected: |
127 protected: |
123 |
128 |
124 /** |
129 /** |
125 * C++ constructor. |
130 * C++ constructor. |
126 */ |
131 */ |
127 CCalenMultiDBEditor( CCalCalendarInfo& aCalendarInfo, |
132 CCalenMultiDBEditor(CCalenMultipleDbUi& aMultipleDbui, |
128 CCalenController& aController, TBool aEditFlag); |
133 CCalCalendarInfo& aCalendarInfo, |
|
134 CCalenController& aController, TBool aEditFlag); |
129 |
135 |
130 |
136 |
131 protected: // Functions from base classes |
137 protected: // Functions from base classes |
132 |
138 |
133 |
139 |
157 /** |
163 /** |
158 * Reads all the data from the form. |
164 * Reads all the data from the form. |
159 */ |
165 */ |
160 void ReadDataFromFormL( TBool aContinueOnError ); |
166 void ReadDataFromFormL( TBool aContinueOnError ); |
161 |
167 |
162 |
|
163 |
|
164 void HandleDialogPageEventL( TInt aEventID ); |
168 void HandleDialogPageEventL( TInt aEventID ); |
|
169 |
|
170 /* |
|
171 * from CAknDialog |
|
172 */ |
|
173 void FocusChanged(TDrawNow aDrawNow); |
165 |
174 |
166 private: |
175 private: |
167 |
176 |
168 /** |
177 /** |
169 * Try to save note. Initializes all the member variables of DBInfo. |
178 * Try to save note. Initializes all the member variables of DBInfo. |
231 /** |
240 /** |
232 * @brief Set the calendar status. |
241 * @brief Set the calendar status. |
233 * @param aValue calendar status. |
242 * @param aValue calendar status. |
234 */ |
243 */ |
235 void SetVisiblityFieldL( TBool aStatusVal ); |
244 void SetVisiblityFieldL( TBool aStatusVal ); |
|
245 |
|
246 /* |
|
247 * Load colors for grid |
|
248 */ |
|
249 void LoadColorsL(); |
236 |
250 |
237 /** |
251 /** |
238 * setup title pane for the status pane |
252 * setup title pane for the status pane |
239 * @return void |
253 * @return void |
240 */ |
254 */ |
269 CCalCalendarInfo& iCalendarInfo; |
283 CCalCalendarInfo& iCalendarInfo; |
270 HBufC* iCalendarName; |
284 HBufC* iCalendarName; |
271 CCalenController& iController; |
285 CCalenController& iController; |
272 TInt iColVal; // Color id |
286 TInt iColVal; // Color id |
273 TBool iCalendarStatus; |
287 TBool iCalendarStatus; |
274 TRgb iColors; |
|
275 CDbColorPicture* iPicture; |
288 CDbColorPicture* iPicture; |
276 TBool iEditFlag; |
289 TBool iEditFlag; |
277 CAknNavigationControlContainer* iNaviContainer; |
290 CAknNavigationControlContainer* iNaviContainer; |
278 //Sync field, EFalse then Sync off else Sync On |
291 //Sync field, EFalse then Sync off else Sync On |
279 TBool iSyncStatus; |
292 TBool iSyncStatus; |
280 TCalendarConflicts iConflict; |
293 TCalendarConflicts iConflict; |
|
294 |
|
295 CCalenMultipleDbUi& iMultipleDbUi; |
|
296 |
|
297 CArrayFixFlat<TRgb>* iRgbColors; |
|
298 TBool iNoneChoosen; |
|
299 TRgb iChoosenColor; |
281 }; |
300 }; |
282 |
301 |
283 #endif // CALENMULTIDBEDITOR_H |
302 #endif // CALENMULTIDBEDITOR_H |
284 |
303 |
285 |
304 |