1 /* |
|
2 * Copyright (c) 2002 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: Declaration of class CApSelectorListbox. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef APSELECTOR_LISTBOX_H |
|
20 #define APSELECTOR_LISTBOX_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <aknlists.h> |
|
24 |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CApSelectorListboxModel; |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Model for the access point listbox. It is an array of CApSelectorItem |
|
34 * pointers; items are owned. |
|
35 */ |
|
36 NONSHARABLE_CLASS( CApSelectorListbox ) : public CAknSingleGraphicStyleListBox |
|
37 { |
|
38 public: // Construct / destruct |
|
39 |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. Leaves on failure. |
|
43 * @param aParent Parent control. |
|
44 * @return The constructed listbox. |
|
45 */ |
|
46 static CApSelectorListbox* NewL |
|
47 ( const CCoeControl* aParent ); |
|
48 |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CApSelectorListbox(); |
|
54 |
|
55 |
|
56 /** |
|
57 * Constructor. |
|
58 */ |
|
59 CApSelectorListbox(); |
|
60 |
|
61 public : |
|
62 /** |
|
63 * Handle key event. |
|
64 * @param aKeyEvent The key event. |
|
65 * @param aType Key event type. |
|
66 * @return Response (was the key event consumed?). |
|
67 */ |
|
68 TKeyResponse OfferKeyEventL |
|
69 ( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
70 |
|
71 /** |
|
72 * Handle focus change. |
|
73 * @param aDrawNow Draw now? |
|
74 */ |
|
75 void FocusChanged( TDrawNow aDrawNow ); |
|
76 |
|
77 |
|
78 /** |
|
79 * Loads the icons |
|
80 */ |
|
81 void LoadIconsL(); |
|
82 |
|
83 |
|
84 /** |
|
85 * Gets the UID from a given item |
|
86 * @param The index of the item |
|
87 * @return The UID of the item given by itemindex |
|
88 */ |
|
89 TUint32 Uid4Item( TInt aItem ) const; |
|
90 |
|
91 |
|
92 /** |
|
93 * Gets the UID of the current item |
|
94 * @return The UID of the current item |
|
95 */ |
|
96 TUint32 CurrentItemUid() const; |
|
97 |
|
98 |
|
99 /** |
|
100 * Gets the name of the current item |
|
101 * @return The name of the current item |
|
102 */ |
|
103 const TDesC& CurrentItemNameL(); |
|
104 |
|
105 |
|
106 // from CCoeControl |
|
107 void HandleResourceChange(TInt aType); |
|
108 |
|
109 }; |
|
110 |
|
111 |
|
112 #endif |
|
113 |
|
114 // End of file |
|