|
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 caldblistbox_H_ |
|
18 #define caldblistbox_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 // Constants. |
|
40 const TInt KMultiDbMaxLength = 300; |
|
41 |
|
42 // Literals. |
|
43 _LIT( KListSeparatorFormat, "\t" ); |
|
44 _LIT( KResourceFile, "multicaluidialog.rsc" ); |
|
45 _LIT( KIconFile, "multicaluidialog.mbm"); |
|
46 _LIT( KIconFormat,"%d"); |
|
47 |
|
48 |
|
49 |
|
50 NONSHARABLE_CLASS( CCalenDbListbox ): public CAknDoubleGraphicStyleListBox |
|
51 { |
|
52 public: |
|
53 /** |
|
54 * constructor |
|
55 */ |
|
56 CCalenDbListbox(const RArray<TInt32>& aColorUidArray); |
|
57 |
|
58 private: //from CAknDouble2GraphicStyleListBox |
|
59 /** |
|
60 * From CEikFormattedCellListBox |
|
61 * Create ListBoxData and ListBoxItemDrawer. |
|
62 */ |
|
63 void CreateItemDrawerL(); |
|
64 |
|
65 /** |
|
66 * Called by the framework after SetRect gets called. |
|
67 * @see CCoeControl. |
|
68 */ |
|
69 void SizeChanged(); |
|
70 |
|
71 /** |
|
72 * Handles size change event |
|
73 */ |
|
74 void SizeChangedL(); |
|
75 |
|
76 private: // data |
|
77 const RArray<TInt32>& iColorUidArray; //Not owns |
|
78 TBool alaunchedFromCal; |
|
79 }; |
|
80 |
|
81 #endif //CMultiCalUiDialogImpl_H_ |