|
1 /* |
|
2 * Copyright (c) 2007-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: Declatirion of CSCSettingsUiMainView |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CSCSETTINGSUIMAINVIEW_H |
|
20 #define C_CSCSETTINGSUIMAINVIEW_H |
|
21 |
|
22 class CCSCSettingsUiModel; |
|
23 class CAknRadioButtonSettingPage; |
|
24 |
|
25 class CAknNavigationControlContainer; |
|
26 class CAknNavigationDecorator; |
|
27 #include "cscsettingsuimaincontainer.h" |
|
28 |
|
29 /** |
|
30 * CCSCSettingsUiMainView class |
|
31 * Declarition of CCSCSettingsUiMainView. |
|
32 * |
|
33 * @lib CSCSettingsUi.lib |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCSCSettingsUiMainView ) : public CAknView, |
|
37 public MEikListBoxObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * |
|
44 * @param aModel for reference to the model |
|
45 */ |
|
46 static CCSCSettingsUiMainView* NewL( |
|
47 CCSCSettingsUiModel& aModel ); |
|
48 |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * |
|
53 * @param aModel for reference to the model |
|
54 */ |
|
55 static CCSCSettingsUiMainView* NewLC( |
|
56 CCSCSettingsUiModel& aModel ); |
|
57 |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CCSCSettingsUiMainView(); |
|
63 |
|
64 |
|
65 /** |
|
66 * Processes situation when softkeys need to be changed. |
|
67 * |
|
68 * @since S60 v3.2 |
|
69 */ |
|
70 void UpdateSoftkeysL( ); |
|
71 |
|
72 |
|
73 // from base class CAknView |
|
74 |
|
75 /** |
|
76 * From CAknView. |
|
77 */ |
|
78 TUid Id() const; |
|
79 |
|
80 |
|
81 private: |
|
82 |
|
83 CCSCSettingsUiMainView( |
|
84 CCSCSettingsUiModel& aModel ); |
|
85 |
|
86 void ConstructL(); |
|
87 |
|
88 |
|
89 /** |
|
90 * Changes given service name to title pane. |
|
91 * |
|
92 * @since S60 v3.2 |
|
93 */ |
|
94 void SetTitleTextL(); |
|
95 |
|
96 |
|
97 /** |
|
98 * For checking if editing of preferred service setting is allowed |
|
99 * |
|
100 * @since S60 v3.2 |
|
101 * @return ETrue if editing allowed |
|
102 */ |
|
103 TBool IsEditPreferredServiceSettingAllowedL(); |
|
104 |
|
105 |
|
106 /** |
|
107 * Shows preferred service setting page. |
|
108 * |
|
109 * @since S60 v5.0 |
|
110 */ |
|
111 void ShowUsernameSettingPageL(); |
|
112 |
|
113 |
|
114 /** |
|
115 * Shows preferred service setting page. |
|
116 * |
|
117 * @since S60 v3.2 |
|
118 */ |
|
119 void ShowPasswordSettingPageL(); |
|
120 |
|
121 |
|
122 /** |
|
123 * Shows preferred service setting page. |
|
124 * |
|
125 * @since S60 v3.2 |
|
126 */ |
|
127 void ShowPrefServiceSettingPageL(); |
|
128 |
|
129 |
|
130 /** |
|
131 * Shows preferred service setting page when VCC is supported. |
|
132 * |
|
133 * @since S60 v5.0 |
|
134 */ |
|
135 void ShowVccPrefServiceSettingPageL(); |
|
136 |
|
137 |
|
138 /** |
|
139 * Shows IM tone selection list. |
|
140 * |
|
141 * @since S60 v5.0 |
|
142 */ |
|
143 void ShowImToneSelectionListL(); |
|
144 |
|
145 /** |
|
146 * Handles 'change' middle softkey selection. |
|
147 * |
|
148 * @param aListBoxItem listbox item |
|
149 * @since S60 v5.0 |
|
150 */ |
|
151 void HandleMskChangeSelectionL( TMainListBoxItem aListBoxItem ); |
|
152 |
|
153 /** |
|
154 * Changes preferred telephony setting value. |
|
155 * From VoIP(PS) to CS or vice versa. |
|
156 * @since S60 v3.2 |
|
157 */ |
|
158 void ChangePrefTelephonyValueL(); |
|
159 |
|
160 /** |
|
161 * Changes handover notify tone value (on/off). |
|
162 * @since S60 v5.0 |
|
163 */ |
|
164 void ChangeHandoverNotifToneValueL(); |
|
165 |
|
166 /** |
|
167 * Appends resource texts to the des array. |
|
168 * |
|
169 * @since S60 v3.2 |
|
170 * @param aList Text array. |
|
171 * @param aItem Text resource id. |
|
172 */ |
|
173 void AppendItemL(CDesCArrayFlat& aList, TInt aItem); |
|
174 |
|
175 |
|
176 /** |
|
177 * Launches Connection Method Settings Ui for editing destinations. |
|
178 * |
|
179 * @since S60 v5.0 |
|
180 */ |
|
181 void LaunchCMSettingsUiL(); |
|
182 |
|
183 |
|
184 /** |
|
185 * Handles returning to previous view where settingsui was launced. |
|
186 * |
|
187 * @since S60 v5.0 |
|
188 */ |
|
189 void HandleReturnToPreviousViewL(); |
|
190 |
|
191 |
|
192 /** |
|
193 * Handles exist from settingsui. |
|
194 * |
|
195 * @since S60 v5.0 |
|
196 */ |
|
197 void HandleSettingsUiExitL(); |
|
198 |
|
199 |
|
200 // from base class CEikAppUi |
|
201 |
|
202 /** |
|
203 * From CEikAppUi. |
|
204 */ |
|
205 void HandleCommandL( TInt aCommand ); |
|
206 |
|
207 |
|
208 // from base class CAknView |
|
209 |
|
210 /** |
|
211 * From CAknView. |
|
212 */ |
|
213 void DoActivateL( |
|
214 const TVwsViewId& aPrevViewId, |
|
215 TUid aCustomMessageId, |
|
216 const TDesC8& aCustomMessage ); |
|
217 |
|
218 |
|
219 /** |
|
220 * From CAknView. |
|
221 */ |
|
222 void DoDeactivate(); |
|
223 |
|
224 |
|
225 // from base class MEikListBoxObserver |
|
226 |
|
227 /** |
|
228 * From MEikListBoxObserver. |
|
229 */ |
|
230 void HandleListBoxEventL( |
|
231 CEikListBox* aListBox, |
|
232 TListBoxEvent aEventType ); |
|
233 |
|
234 |
|
235 /** |
|
236 * From MEikListBoxObserver. |
|
237 */ |
|
238 void HandleListBoxSelectionL(); |
|
239 |
|
240 |
|
241 /** |
|
242 * From MEikListBoxObserver. |
|
243 */ |
|
244 void DynInitMenuPaneL( |
|
245 TInt aResourceId, |
|
246 CEikMenuPane* aMenuPane ); |
|
247 |
|
248 private: // data |
|
249 |
|
250 /** |
|
251 * Handle to model class for settings handling. |
|
252 */ |
|
253 CCSCSettingsUiModel& iModel; |
|
254 |
|
255 /** |
|
256 * Handle to title pane. |
|
257 * Not own. |
|
258 */ |
|
259 CAknTitlePane* iTitlePane; |
|
260 |
|
261 /** |
|
262 * Container class for main view. |
|
263 * Own. |
|
264 */ |
|
265 CCSCSettingsUiMainContainer* iContainer; |
|
266 |
|
267 CAknNavigationControlContainer* iNaviPane; |
|
268 |
|
269 CAknNavigationDecorator* iNaviDecorator; |
|
270 |
|
271 #ifdef _DEBUG |
|
272 friend class UT_cscsettingsui; |
|
273 #endif |
|
274 |
|
275 }; |
|
276 |
|
277 #endif // C_CSCSETTINGSUIMAINVIEW_H |
|
278 |