|
1 /* |
|
2 * Copyright (c) 2004-2005 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: |
|
15 * See class description below |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __LANDMARKS_CATEGORIES_DIALOG_H__ |
|
21 #define __LANDMARKS_CATEGORIES_DIALOG_H__ |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <aknselectionlist.h> |
|
26 #include <EPos_Landmarks.h> |
|
27 |
|
28 |
|
29 class CLandmarksApplicationEngine; |
|
30 class CLandmarksLmCategoriesModel; |
|
31 class CPosLandmarkCategory; |
|
32 class CAknTitlePane; |
|
33 class CGulIcon; |
|
34 |
|
35 |
|
36 |
|
37 /** |
|
38 * CLandmarksCategoriesDialog is a dilog for selecting which categories a |
|
39 * landmark belongs to. |
|
40 */ |
|
41 class CLandmarksCategoriesDialog : public CAknMarkableListDialog |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Creates, executes and destroys the dialog after dismissed. |
|
47 * @param aLmCategoriesModel landmark categories |
|
48 * @return EFalse if dialog was cancelled |
|
49 */ |
|
50 static TInt RunDialogL(CLandmarksLmCategoriesModel& aLmCategoriesModel); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CLandmarksCategoriesDialog(); |
|
56 |
|
57 protected: // From CEikDialog |
|
58 |
|
59 /** |
|
60 * Called after the dialog is layed out. |
|
61 */ |
|
62 void PostLayoutDynInitL(); |
|
63 |
|
64 /** |
|
65 * OfferKeyEventL handles key events. |
|
66 * |
|
67 * @param aKeyEvent the key event |
|
68 * @param aType the type of key event |
|
69 * @return EKeyWasConsumed if keyevent was handled, EKeyWasNotConsumed |
|
70 * otherwise |
|
71 */ |
|
72 TKeyResponse OfferKeyEventL( |
|
73 const TKeyEvent& aKeyEvent, |
|
74 TEventCode aType); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * C++ constructor. |
|
80 * |
|
81 * @param aSelectedItem the selected item. |
|
82 * @param aMarkedItems an array of selected categories. |
|
83 * @param aListItems array of items to display. |
|
84 */ |
|
85 CLandmarksCategoriesDialog( |
|
86 TInt& aSelectedItem, |
|
87 CArrayFixFlat<TInt>* aMarkedItems, |
|
88 CDesCArray* aListItems); |
|
89 |
|
90 private: // Data |
|
91 |
|
92 //! The title pane that is dynamically updated |
|
93 CAknTitlePane* iTitlePane; |
|
94 |
|
95 //! The original title that the title pane displayed before modified |
|
96 HBufC* iOriginalTitle; |
|
97 }; |
|
98 |
|
99 #endif // __LANDMARKS_CATEGORIES_DIALOG_H__ |
|
100 |
|
101 |