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 CTestModulesMenuView class |
|
15 * declaration. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTMODULEMENUVIEW_H |
|
20 #define TESTMODULEMENUVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "View.h" |
|
24 #include <eiklbo.h> // MEikListBoxObserver |
|
25 #include <aknnavide.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CTestModulesMenuContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CTestModulesMenuView view class. |
|
36 * |
|
37 */ |
|
38 class CTestModulesMenuView : public CView, public MEikListBoxObserver |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Symbian OS default constructor. |
|
44 */ |
|
45 void ConstructL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CTestModulesMenuView(); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * Returns view´s id. |
|
56 * @return View id. |
|
57 */ |
|
58 TUid Id() const; |
|
59 |
|
60 /** |
|
61 * Handles a command. |
|
62 * @param aCommand A command ID. |
|
63 */ |
|
64 void HandleCommandL( TInt aCommand ); |
|
65 |
|
66 /** |
|
67 * Handles client rect changes. |
|
68 */ |
|
69 void HandleClientRectChange(); |
|
70 |
|
71 /** |
|
72 * Handles a list box event. |
|
73 * @param aListBox A pointer to list box (not used). |
|
74 * @param aEventType Type of list box event. |
|
75 */ |
|
76 void HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aEventType); |
|
77 |
|
78 /** |
|
79 * Initializes menu pane. |
|
80 * @param aResourceId Menu pane resource ID. |
|
81 * @param aMenuPane Menu pane pointer. |
|
82 */ |
|
83 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * Initializes view when activated. |
|
89 * @param aPrevViewId Id of the previous view (not used). |
|
90 * @param aCustomMessageId Custom message id (not used). |
|
91 * @param aCustomMessage Custom message (not used). |
|
92 */ |
|
93 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
94 const TDesC8& aCustomMessage); |
|
95 |
|
96 /** |
|
97 * Deactivates view. |
|
98 */ |
|
99 void DoDeactivate(); |
|
100 |
|
101 private: // Data |
|
102 CAknNavigationDecorator* iNaviDecorator; |
|
103 CTestModulesMenuContainer* iContainer; |
|
104 }; |
|
105 |
|
106 #endif // TESTMODULEMENUVIEW_H |
|
107 |
|
108 // End of File |
|