author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:20:32 +0300 | |
branch | RCL_3 |
changeset 33 | 2989b291cac7 |
parent 28 | d38647835c2e |
permissions | -rw-r--r-- |
28 | 1 |
/* |
2 |
* Copyright (c) 2007-2010 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 |
* Two-phased constructor. |
|
51 |
* |
|
52 |
* @param aModel for reference to the model |
|
53 |
*/ |
|
54 |
static CCSCSettingsUiMainView* NewLC( |
|
55 |
CCSCSettingsUiModel& aModel ); |
|
56 |
||
57 |
/** |
|
58 |
* Destructor. |
|
59 |
*/ |
|
60 |
virtual ~CCSCSettingsUiMainView(); |
|
61 |
||
62 |
/** |
|
63 |
* Processes situation when softkeys need to be changed. |
|
64 |
* |
|
65 |
* @since S60 v3.2 |
|
66 |
*/ |
|
67 |
void UpdateSoftkeysL(); |
|
68 |
||
69 |
/** |
|
70 |
* Resets service settings when switching services. |
|
71 |
* |
|
72 |
* @since S60 v5.2 |
|
73 |
*/ |
|
74 |
void ResetViewL(); |
|
75 |
||
76 |
// from base class CAknView |
|
77 |
||
78 |
/** |
|
79 |
* From CAknView. |
|
80 |
*/ |
|
81 |
TUid Id() const; |
|
82 |
||
83 |
private: |
|
84 |
||
85 |
CCSCSettingsUiMainView( |
|
86 |
CCSCSettingsUiModel& aModel ); |
|
87 |
void ConstructL(); |
|
88 |
||
89 |
/** |
|
90 |
* Changes given service name to title pane. |
|
91 |
* |
|
92 |
* @since S60 v3.2 |
|
93 |
*/ |
|
94 |
void SetTitleTextL(); |
|
95 |
||
96 |
/** |
|
97 |
* For checking if editing of preferred service setting is allowed |
|
98 |
* |
|
99 |
* @since S60 v3.2 |
|
100 |
* @return ETrue if editing allowed |
|
101 |
*/ |
|
102 |
TBool IsEditPreferredServiceSettingAllowedL(); |
|
103 |
||
104 |
/** |
|
105 |
* Shows preferred service setting page. |
|
106 |
* |
|
107 |
* @since S60 v5.0 |
|
108 |
*/ |
|
109 |
void ShowUsernameSettingPageL(); |
|
110 |
||
111 |
/** |
|
112 |
* Shows preferred service setting page. |
|
113 |
* |
|
114 |
* @since S60 v3.2 |
|
115 |
*/ |
|
116 |
void ShowPasswordSettingPageL(); |
|
117 |
||
118 |
/** |
|
119 |
* Shows preferred service setting page. |
|
120 |
* |
|
121 |
* @since S60 v3.2 |
|
122 |
*/ |
|
123 |
void ShowPrefServiceSettingPageL(); |
|
124 |
||
125 |
/** |
|
126 |
* Shows preferred service setting page when VCC is supported. |
|
127 |
* |
|
128 |
* @since S60 v5.0 |
|
129 |
*/ |
|
130 |
void ShowVccPrefServiceSettingPageL(); |
|
131 |
||
132 |
/** |
|
133 |
* Shows IM tone selection list. |
|
134 |
* |
|
135 |
* @since S60 v5.0 |
|
136 |
*/ |
|
137 |
void ShowImToneSelectionListL(); |
|
138 |
||
139 |
/** |
|
140 |
* Handles 'change' middle softkey selection. |
|
141 |
* |
|
142 |
* @param aListBoxItem listbox item |
|
143 |
* @since S60 v5.0 |
|
144 |
*/ |
|
145 |
void HandleMskChangeSelectionL( TMainListBoxItem aListBoxItem ); |
|
146 |
||
147 |
/** |
|
148 |
* Changes preferred telephony setting value. |
|
149 |
* From VoIP(PS) to CS or vice versa. |
|
150 |
* @since S60 v3.2 |
|
151 |
*/ |
|
152 |
void ChangePrefTelephonyValueL(); |
|
153 |
||
154 |
/** |
|
155 |
* Changes handover notify tone value (on/off). |
|
156 |
* @since S60 v5.0 |
|
157 |
*/ |
|
158 |
void ChangeHandoverNotifToneValueL(); |
|
159 |
||
160 |
/** |
|
161 |
* Appends resource texts to the des array. |
|
162 |
* |
|
163 |
* @since S60 v3.2 |
|
164 |
* @param aList Text array. |
|
165 |
* @param aItem Text resource id. |
|
166 |
*/ |
|
167 |
void AppendItemL(CDesCArrayFlat& aList, TInt aItem); |
|
168 |
||
169 |
/** |
|
170 |
* Launches Connection Method Settings Ui for editing destinations. |
|
171 |
* |
|
172 |
* @since S60 v5.0 |
|
173 |
*/ |
|
174 |
void LaunchCMSettingsUiL(); |
|
175 |
||
176 |
/** |
|
177 |
* Handles returning to previous view where settingsui was launced. |
|
178 |
* |
|
179 |
* @since S60 v5.0 |
|
33
2989b291cac7
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
180 |
* @param aViewBack for checking if back the view, |
2989b291cac7
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
181 |
* ETrue if back the view, EFalse if not. |
28 | 182 |
*/ |
183 |
void HandleReturnToPreviousViewL( TBool aViewBack = ETrue ); |
|
184 |
||
185 |
/** |
|
186 |
* Handles exist from settingsui. |
|
187 |
* |
|
188 |
* @since S60 v5.0 |
|
189 |
*/ |
|
190 |
void HandleSettingsUiExitL(); |
|
191 |
||
192 |
// from base class CEikAppUi |
|
193 |
||
194 |
/** |
|
195 |
* From CEikAppUi. |
|
196 |
*/ |
|
197 |
void HandleCommandL( TInt aCommand ); |
|
198 |
||
199 |
// from base class CAknView |
|
200 |
||
201 |
/** |
|
202 |
* From CAknView. |
|
203 |
*/ |
|
204 |
void DoActivateL( |
|
205 |
const TVwsViewId& aPrevViewId, |
|
206 |
TUid aCustomMessageId, |
|
207 |
const TDesC8& aCustomMessage ); |
|
208 |
||
209 |
/** |
|
210 |
* From CAknView. |
|
211 |
*/ |
|
212 |
void DoDeactivate(); |
|
213 |
||
214 |
// from base class MEikListBoxObserver |
|
215 |
||
216 |
/** |
|
217 |
* From MEikListBoxObserver. |
|
218 |
*/ |
|
219 |
void HandleListBoxEventL( |
|
220 |
CEikListBox* aListBox, |
|
221 |
TListBoxEvent aEventType ); |
|
222 |
||
223 |
/** |
|
224 |
* From MEikListBoxObserver. |
|
225 |
*/ |
|
226 |
void HandleListBoxSelectionL(); |
|
227 |
||
228 |
/** |
|
229 |
* From MEikListBoxObserver. |
|
230 |
*/ |
|
231 |
void DynInitMenuPaneL( |
|
232 |
TInt aResourceId, |
|
233 |
CEikMenuPane* aMenuPane ); |
|
234 |
||
235 |
private: // data |
|
236 |
||
237 |
/** |
|
238 |
* Handle to model class for settings handling. |
|
239 |
*/ |
|
240 |
CCSCSettingsUiModel& iModel; |
|
241 |
||
242 |
/** |
|
243 |
* Handle to title pane. |
|
244 |
* Not own. |
|
245 |
*/ |
|
246 |
CAknTitlePane* iTitlePane; |
|
247 |
||
248 |
/** |
|
249 |
* Container class for main view. |
|
250 |
* Own. |
|
251 |
*/ |
|
252 |
CCSCSettingsUiMainContainer* iContainer; |
|
253 |
||
254 |
/** |
|
255 |
* Navigation pane. |
|
256 |
* Not own. |
|
257 |
*/ |
|
258 |
CAknNavigationControlContainer* iNaviPane; |
|
259 |
||
260 |
/** |
|
261 |
* Navigation decorator. |
|
262 |
* Own. |
|
263 |
*/ |
|
264 |
CAknNavigationDecorator* iNaviDecorator; |
|
265 |
||
266 |
/** |
|
267 |
* Flag for telling if IM tone selection list is open. |
|
268 |
*/ |
|
269 |
TBool iImToneSelectionListOpen; |
|
270 |
||
271 |
/** |
|
272 |
* Flag for telling if service is deleted. |
|
273 |
*/ |
|
274 |
TBool iDeleted; |
|
275 |
||
276 |
/** |
|
277 |
* Flag for telling if SNAP list is open. |
|
278 |
*/ |
|
279 |
TBool iSnapListOpen; |
|
280 |
||
281 |
#ifdef _DEBUG |
|
282 |
friend class UT_cscsettingsui; |
|
283 |
#endif |
|
284 |
||
285 |
}; |
|
286 |
||
287 |
#endif // C_CSCSETTINGSUIMAINVIEW_H |
|
288 |