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