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: This file contains CMenuListBox class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MENULISTBOX_H_ |
|
19 #define MENULISTBOX_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <eiktxlbx.h> |
|
23 #include "Stifui.hrh" |
|
24 #include "AppUIAppUi.h" |
|
25 #include <aknview.h> |
|
26 #include <aknlists.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CMenuListBox class. Has ability to store and retrieve previous focus position |
|
36 */ |
|
37 class CMenuListBox : public CAknSingleStyleListBox |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 static CMenuListBox* NewL(TAppUIViewNumber aViewId); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CMenuListBox(); |
|
47 |
|
48 /** |
|
49 * Sets focus on last chosen position |
|
50 */ |
|
51 void SetPreviousFocus(); |
|
52 |
|
53 /** |
|
54 * Saves position of focus to CAppUiAppUi object |
|
55 */ |
|
56 void SaveFocusPosition(); |
|
57 |
|
58 private: // Constructors and destructor |
|
59 |
|
60 CMenuListBox(TAppUIViewNumber aViewId); |
|
61 |
|
62 /** |
|
63 * Symbian OS default constructor. |
|
64 */ |
|
65 void ConstructL(); |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 private: |
|
70 |
|
71 private: // Data |
|
72 const TAppUIViewNumber iViewId; |
|
73 }; |
|
74 |
|
75 #endif /*MENULISTBOX_H_*/ |
|
76 |
|
77 // End of File |
|