|
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 : implementation class for multiple calendars list dialog. |
|
15 */ |
|
16 |
|
17 #ifndef caldblistboxitemdrawer_H_ |
|
18 #define caldblistboxitemdrawer_H_ |
|
19 |
|
20 //System include |
|
21 #include <calentry.h> |
|
22 #include <AknDialog.h> |
|
23 #include <coemain.h> |
|
24 #include <eiklbo.h> |
|
25 #include <aknlists.h> |
|
26 |
|
27 //Forward declarations. |
|
28 class CEikColumnListBox; |
|
29 class TAknsItemID; |
|
30 class CAknIconArray; |
|
31 class CAknDoubleGraphicStyleListBox; |
|
32 class CAknsBasicBackgroundControlContext; |
|
33 class CAknNavigationControlContainer; |
|
34 class CCalenDbListbox; |
|
35 class CGulIcon; |
|
36 class CCalEntry; |
|
37 class CMultiCalUiDialogModel; |
|
38 |
|
39 enum TCalenListDbIcons |
|
40 { |
|
41 ECalenListDbIconUnMarked, // done To-do icon |
|
42 ECalenListDbIconMarked, // Undone To-do icon |
|
43 }; |
|
44 |
|
45 |
|
46 NONSHARABLE_CLASS( CCalenDbListboxItemDrawer ) : public CFormattedCellListBoxItemDrawer |
|
47 { |
|
48 public: |
|
49 /** |
|
50 * constructor |
|
51 */ |
|
52 CCalenDbListboxItemDrawer( MTextListBoxModel* aTextListBoxModel, |
|
53 const CFont* aFont, |
|
54 CFormattedCellListBoxData* aFormattedCellData, |
|
55 CEikListBox* aListBox , |
|
56 const RArray<TInt32>& aColorUidArray); |
|
57 |
|
58 /** |
|
59 * destructor |
|
60 */ |
|
61 ~CCalenDbListboxItemDrawer(); |
|
62 |
|
63 private: |
|
64 /** |
|
65 *Draws the item |
|
66 */ |
|
67 void DrawItem(TInt aItemIndex, |
|
68 TPoint aItemRectPos, |
|
69 TBool aItemIsSelected, |
|
70 TBool aItemIsCurrent, |
|
71 TBool aViewIsEmphasized, |
|
72 TBool aViewIsDimmed) const; |
|
73 |
|
74 private: |
|
75 CEikListBox* iListBox; //Not owns |
|
76 const RArray<TInt32>& iColorUidArray; //Not owns |
|
77 CGulIcon* iIcon; |
|
78 }; |
|
79 |
|
80 |
|
81 #endif //CMultiCalUiDialogImpl_H_ |