1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef VEISETTINGSVIEW_H |
|
21 #define VEISETTINGSVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 // System includes |
|
25 #include <aknview.h> // CAknView |
|
26 // User includes |
|
27 #include "VeiSettings.h" // TVeiSettings |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CVeiSettingsContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CVeiSettingsView view class. |
|
36 */ |
|
37 class CVeiSettingsView: public CAknView |
|
38 { |
|
39 public: |
|
40 // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CVeiSettingsView* NewL(); |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CVeiSettingsView* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CVeiSettingsView(); |
|
56 |
|
57 public: |
|
58 // From CAknView |
|
59 |
|
60 /** |
|
61 * |
|
62 */ |
|
63 TUid Id()const; |
|
64 |
|
65 /** |
|
66 * |
|
67 */ |
|
68 void HandleCommandL( TInt aCommand ); |
|
69 |
|
70 /** |
|
71 * |
|
72 */ |
|
73 void HandleClientRectChange(); |
|
74 |
|
75 private: |
|
76 // From CAknView |
|
77 |
|
78 /** |
|
79 * From AknView |
|
80 */ |
|
81 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
82 const TDesC8& aCustomMessage ); |
|
83 |
|
84 /** |
|
85 * From AknView |
|
86 */ |
|
87 void DoDeactivate(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * C++ default constructor. |
|
93 */ |
|
94 CVeiSettingsView(); |
|
95 |
|
96 /** |
|
97 * Symbian 2nd phase constructor. |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 private: |
|
102 // Data |
|
103 |
|
104 /** |
|
105 * Container. |
|
106 */ |
|
107 CVeiSettingsContainer* iContainer; |
|
108 |
|
109 /** |
|
110 * |
|
111 */ |
|
112 TVeiSettings iSettings; |
|
113 |
|
114 /** |
|
115 * Store the original orientation when forcing to portrait |
|
116 */ |
|
117 //CAknAppUiBase::TAppUiOrientation iOriginalOrientation; |
|
118 }; |
|
119 |
|
120 #endif |
|
121 |
|
122 // End of Files |
|