|
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: AknConf view |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_AKNCONFVIEW_H |
|
19 #define C_AKNCONFVIEW_H |
|
20 |
|
21 |
|
22 #include <aknview.h> |
|
23 #include "aknconf.hrh" |
|
24 |
|
25 class CAknConfSettingList; |
|
26 |
|
27 const TInt KPhysicsViewUid( EAknConfView ); |
|
28 const TInt KGestureViewUid( EGestureConfView ); |
|
29 |
|
30 /** |
|
31 * AknConf view |
|
32 */ |
|
33 class CAknConfView : public CAknView |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * C++ constructor. |
|
40 */ |
|
41 CAknConfView( const TInt aViewId ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CAknConfView(); |
|
47 |
|
48 /** |
|
49 * Symbian 2nd phase constructor. |
|
50 * |
|
51 * @param aResId Resource ID used to create the view |
|
52 */ |
|
53 void ConstructL( TInt aResId ); |
|
54 |
|
55 // From base class CAknView. |
|
56 |
|
57 /** |
|
58 * From CAknView. |
|
59 * Return Uid. |
|
60 * |
|
61 * @return Uid Uid value |
|
62 */ |
|
63 TUid Id() const; |
|
64 |
|
65 private: |
|
66 |
|
67 // From base class CAknView. |
|
68 |
|
69 /** |
|
70 * From CAknView. |
|
71 * Takes care of command handling. |
|
72 * |
|
73 * @param aCommand Command |
|
74 */ |
|
75 void HandleCommandL( TInt aCommand ); |
|
76 |
|
77 /** |
|
78 * From CAknView. |
|
79 * Handles the view activation. |
|
80 * |
|
81 * @param aPrevViewId Specifies the view previously active. |
|
82 * @param aCustomMessageId Specifies the message type. |
|
83 * @param aCustomMessage The activation message. |
|
84 */ |
|
85 void DoActivateL( |
|
86 const TVwsViewId& aPrevViewId, |
|
87 TUid aCustomMessageId, |
|
88 const TDesC8& aCustomMessage ); |
|
89 |
|
90 /** |
|
91 * From CAknView. |
|
92 * Handles the view deactivation. |
|
93 */ |
|
94 void DoDeactivate(); |
|
95 |
|
96 /** |
|
97 * From CAknView. |
|
98 * |
|
99 * @param aResourceId menu pane resource ID |
|
100 * @param aMenuPane menu pane pointer |
|
101 */ |
|
102 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
103 |
|
104 private: |
|
105 |
|
106 /** |
|
107 * The view container. |
|
108 * Own. |
|
109 */ |
|
110 CAknConfSettingList* iSettingList; |
|
111 |
|
112 /** |
|
113 * The view id. |
|
114 */ |
|
115 TInt iId; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // C_AKNCONFVIEW_H |