|
1 /* |
|
2 * Copyright (c) 2006-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: View class for Settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CIRSETTINGSVIEW_H |
|
20 #define C_CIRSETTINGSVIEW_H |
|
21 |
|
22 // Need to be changed. |
|
23 |
|
24 #include "irsettingsviewbase.h" |
|
25 #include "irsystemeventobserver.h" |
|
26 #include "irbaseview.h" |
|
27 |
|
28 |
|
29 /** |
|
30 * Implementation of the settings view |
|
31 * CVRSettingsViewBase needs to be changed to CIRSettingsViewBase |
|
32 */ |
|
33 |
|
34 NONSHARABLE_CLASS( CIRSettingsView ) : public CIRSettingsViewBase, public MIRSystemEventObserver |
|
35 |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * NewL() |
|
41 * Static constructor. |
|
42 */ |
|
43 static CIRSettingsView* NewL(); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @param aShowRegionItem ETrue if region setting item is to be shown, otherwise EFalse |
|
48 * @return The newly created object. |
|
49 */ |
|
50 static CIRSettingsView* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CIRSettingsView(); |
|
56 |
|
57 // from base class CAknView |
|
58 |
|
59 /* HandleCommandL() |
|
60 * Command Handler |
|
61 */ |
|
62 void HandleCommandL( TInt aCommand ); |
|
63 |
|
64 /* HandleForegroundEventL() |
|
65 * Handles changes in keyboard focus when an application switches to foreground |
|
66 */ |
|
67 void HandleForegroundEventL( TBool aForeground ); |
|
68 |
|
69 /* DynInitMenuPaneL() |
|
70 * Dynamically initialises a menu pane |
|
71 */ |
|
72 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Constructor. |
|
78 */ |
|
79 CIRSettingsView(); |
|
80 |
|
81 /** |
|
82 * Second-phase constructor. |
|
83 * |
|
84 * @param aShowRegionItem ETrue if region setting item is to be shown |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 // from base class CIRSettingsViewBase |
|
89 |
|
90 /* CreateContainerL() |
|
91 * Creates a new container |
|
92 */ |
|
93 void CreateContainerL(); |
|
94 |
|
95 // from base class CAknView |
|
96 |
|
97 /* Id() |
|
98 * Returns the Id of the view |
|
99 */ |
|
100 TUid Id() const; |
|
101 |
|
102 /* DoActivateL() |
|
103 * Activates the view |
|
104 */ |
|
105 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
106 const TDesC8& aCustomMessage ); |
|
107 |
|
108 /* DoDeactivate() |
|
109 * Deactivates the view |
|
110 */ |
|
111 void DoDeactivate(); |
|
112 |
|
113 // from base class MIRSystemEventObserver |
|
114 |
|
115 /* HandleSystemEventL() |
|
116 * Handles the system events |
|
117 */ |
|
118 void HandleSystemEventL(TIRSystemEventType aEventType); |
|
119 |
|
120 /* HandleViewStackL() |
|
121 * handles the view stack |
|
122 */ |
|
123 void HandleViewStackL( ); |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // C_CIRSETTINGSVIEW_H |