|
1 /* |
|
2 * Copyright (c) 2007 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: List box used to display the Location Centre pop-up. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_LCPOPUPLISTBOX_H |
|
20 #define C_LCPOPUPLISTBOX_H |
|
21 |
|
22 // SYSTEM INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <aknlists.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CLcPopupListBoxModel; |
|
28 class CLcLocationAppInfoArray; |
|
29 |
|
30 /** |
|
31 * List box for Location Centre pop-up dialog. |
|
32 * |
|
33 * This class provides the extension of Single Large style list box which is |
|
34 * used to display Location Centre pop-up. |
|
35 * |
|
36 * @lib lcservice.lib |
|
37 * @since S60 v5.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CLcPopupListBox ) : public CAknSingleGraphicPopupMenuStyleListBox |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Overloaded constructor |
|
44 */ |
|
45 CLcPopupListBox( CLcLocationAppInfoArray* aAppArray ); |
|
46 |
|
47 /** |
|
48 * Second phase of the two phase constructor |
|
49 */ |
|
50 void ConstructL( CCoeControl* aParent ); |
|
51 |
|
52 /** |
|
53 * C++ Destructor. |
|
54 * Frees all the resources associated with this Location Centre |
|
55 * listbox object. |
|
56 */ |
|
57 virtual ~CLcPopupListBox(); |
|
58 |
|
59 /** |
|
60 * Updates the Listbox model with a new Array of Location based Applications |
|
61 * and Contents/Services. |
|
62 * |
|
63 * @param[in] aAppArray Array of Location based Applicaions and Contents/Services |
|
64 * The ownership of the array is transferred. |
|
65 */ |
|
66 void UpdateListBoxL( CLcLocationAppInfoArray* aAppArray ); |
|
67 |
|
68 /** |
|
69 * Updates the listbox icons. |
|
70 */ |
|
71 void UpdateIconsL(); |
|
72 |
|
73 /** |
|
74 * Returns the Application's Identifer corresponding to the selected |
|
75 * item |
|
76 */ |
|
77 TPtrC AppInfoId() const; |
|
78 |
|
79 private: // Inherited from Base classes. |
|
80 /** |
|
81 * Imherited from CCoeControl. |
|
82 */ |
|
83 void HandleResourceChange( TInt aType ); |
|
84 |
|
85 private: // data |
|
86 /** |
|
87 * Application Information array |
|
88 * |
|
89 * Owns. |
|
90 */ |
|
91 CLcLocationAppInfoArray* iAppArray; |
|
92 |
|
93 /** |
|
94 * Pop-up List box model. |
|
95 */ |
|
96 CLcPopupListBoxModel* iListBoxModel; |
|
97 }; |
|
98 |
|
99 #endif // C_LCPOPUPLISTBOX_H |