70
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 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:
|
|
15 |
* Defines CApSelPopupList for access point selection.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
// INCLUDE FILES
|
|
21 |
#include "APSettingsHandlerUIVariant.hrh"
|
|
22 |
|
|
23 |
#include <ApListItem.h>
|
|
24 |
#include <apsetui.rsg>
|
|
25 |
#include <featmgr.h>
|
|
26 |
|
|
27 |
#include "ApSelectorListBoxModel.h"
|
|
28 |
#include "ApSettingsModel.h"
|
|
29 |
#include "ApSettingsHandlerUI.hrh"
|
|
30 |
#include "ApSelPopupList.h"
|
|
31 |
#include "ApsettingshandleruiImpl.h"
|
|
32 |
|
|
33 |
|
|
34 |
#include "ApSettingsHandlerLogger.h"
|
|
35 |
|
|
36 |
#include <ApProtHandler.h> // for protection of settings
|
|
37 |
|
|
38 |
#include <AknsUtils.h>
|
|
39 |
#include <apsettings.mbg>
|
|
40 |
#include <data_caging_path_literals.hrh>
|
|
41 |
|
|
42 |
|
|
43 |
// CONSTANTS
|
|
44 |
// Drive and file name of the MBM file containing icons for Protection
|
|
45 |
_LIT( KFileIcons, "z:ApSettings.mbm" );
|
|
46 |
|
|
47 |
|
|
48 |
// ================= MEMBER FUNCTIONS =======================
|
|
49 |
|
|
50 |
// ---------------------------------------------------------
|
|
51 |
// CApSelPopupList::NewL
|
|
52 |
// ---------------------------------------------------------
|
|
53 |
//
|
|
54 |
CApSelPopupList* CApSelPopupList::NewL( CApSettingsModel& aModel,
|
|
55 |
CApSettingsHandlerImpl& aHandler,
|
|
56 |
TInt& aCurrentSelectionIndex,
|
|
57 |
TInt& aPreferredUid,
|
|
58 |
TSelectionMenuType aSelMenuType,
|
|
59 |
TInt aIspFilter, TInt aBearerFilter,
|
|
60 |
TInt aSortType, TUint32& aEventStore,
|
|
61 |
CDesCArrayFlat* aItemArray,
|
|
62 |
TBool aNeedsNone,
|
|
63 |
TBool aNoEdit,
|
|
64 |
TInt aReqIpvType,
|
|
65 |
TVpnFilterType aVpnFilterType
|
|
66 |
)
|
|
67 |
{
|
|
68 |
return NULL;
|
|
69 |
}
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
// ---------------------------------------------------------
|
|
76 |
// CApSelPopupList::NewL
|
|
77 |
// ---------------------------------------------------------
|
|
78 |
//
|
|
79 |
CApSelPopupList* CApSelPopupList::NewL( CApSettingsModel& aModel,
|
|
80 |
CApSettingsHandlerImpl& aHandler,
|
|
81 |
TInt& aCurrentSelectionIndex,
|
|
82 |
TInt& aPreferredUid,
|
|
83 |
TSelectionMenuType aSelMenuType,
|
|
84 |
TInt aIspFilter, TInt aBearerFilter,
|
|
85 |
TInt aSortType, TUint32& aEventStore,
|
|
86 |
CDesCArrayFlat* aItemArray,
|
|
87 |
TBool aNeedsNone,
|
|
88 |
TInt aReqIpvType,
|
|
89 |
TVpnFilterType aVpnFilterType,
|
|
90 |
TBool aIncludeEasyWlan,
|
|
91 |
TBool aNoEdit
|
|
92 |
)
|
|
93 |
{
|
|
94 |
return NULL;
|
|
95 |
}
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
// ---------------------------------------------------------
|
|
100 |
// CApSelPopupList::ConstructL
|
|
101 |
// ---------------------------------------------------------
|
|
102 |
//
|
|
103 |
void CApSelPopupList::ConstructL()
|
|
104 |
{
|
|
105 |
}
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
// Destructor
|
|
110 |
CApSelPopupList::~CApSelPopupList()
|
|
111 |
{
|
|
112 |
}
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
// Constructor
|
|
117 |
CApSelPopupList::CApSelPopupList(
|
|
118 |
CApSettingsModel& aModel,
|
|
119 |
CApSettingsHandlerImpl& aHandler,
|
|
120 |
TInt& aIndex, TInt& aPreferredUid,
|
|
121 |
TSelectionMenuType aSelMenuType,
|
|
122 |
TInt aIspFilter, TInt aBearerFilter,
|
|
123 |
TInt aSortType, CDesCArrayFlat* aItemArray,
|
|
124 |
TUint32& aEventStore, TBool aNeedsNone,
|
|
125 |
TBool aNoEdit,
|
|
126 |
TInt aReqIpvType,
|
|
127 |
TVpnFilterType aVpnFilterType
|
|
128 |
)
|
|
129 |
:CAknRadioButtonSettingPage( R_POPUP_LIST_SETTING_PAGE,
|
|
130 |
aIndex, aItemArray ),
|
|
131 |
iDataModel( &aModel ),
|
|
132 |
iSelected( &aPreferredUid ),
|
|
133 |
iBearerFilter( aBearerFilter ),
|
|
134 |
iIspFilter( aIspFilter ),
|
|
135 |
iSortType( aSortType ),
|
|
136 |
iSelMenuType( aSelMenuType ),
|
|
137 |
iHandler( &aHandler ),
|
|
138 |
iEventStore( &aEventStore ),
|
|
139 |
iPreferredUid( aPreferredUid ),
|
|
140 |
iNeedsNone( aNeedsNone ),
|
|
141 |
iNeedUnlock( EFalse ),
|
|
142 |
iReqIpvType( aReqIpvType ),
|
|
143 |
iVpnFilterType( aVpnFilterType ),
|
|
144 |
iVariant( aHandler.iExt->iVariant ),
|
|
145 |
iIncludeEasyWlan( EFalse ),
|
|
146 |
iNoEdit( aNoEdit )
|
|
147 |
{
|
|
148 |
}
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
CApSelPopupList::CApSelPopupList(
|
|
154 |
CApSettingsModel& aModel,
|
|
155 |
CApSettingsHandlerImpl& aHandler,
|
|
156 |
TInt& aIndex, TInt& aPreferredUid,
|
|
157 |
TSelectionMenuType aSelMenuType,
|
|
158 |
TInt aIspFilter, TInt aBearerFilter,
|
|
159 |
TInt aSortType, CDesCArrayFlat* aItemArray,
|
|
160 |
TUint32& aEventStore, TBool aNeedsNone,
|
|
161 |
TInt aReqIpvType,
|
|
162 |
TVpnFilterType aVpnFilterType,
|
|
163 |
TBool aIncludeEasyWlan,
|
|
164 |
TBool aNoEdit
|
|
165 |
)
|
|
166 |
:CAknRadioButtonSettingPage( R_POPUP_LIST_SETTING_PAGE,
|
|
167 |
aIndex, aItemArray ),
|
|
168 |
iDataModel( &aModel ),
|
|
169 |
iSelected( &aPreferredUid ),
|
|
170 |
iBearerFilter( aBearerFilter ),
|
|
171 |
iIspFilter( aIspFilter ),
|
|
172 |
iSortType( aSortType ),
|
|
173 |
iSelMenuType( aSelMenuType ),
|
|
174 |
iHandler( &aHandler ),
|
|
175 |
iEventStore( &aEventStore ),
|
|
176 |
iPreferredUid( aPreferredUid ),
|
|
177 |
iNeedsNone( aNeedsNone ),
|
|
178 |
iNeedUnlock( EFalse ),
|
|
179 |
iReqIpvType( aReqIpvType ),
|
|
180 |
iVpnFilterType( aVpnFilterType ),
|
|
181 |
iVariant( aHandler.iExt->iVariant ),
|
|
182 |
iIncludeEasyWlan( aIncludeEasyWlan ),
|
|
183 |
iInitialised( EFalse ),
|
|
184 |
iNoEdit( aNoEdit )
|
|
185 |
{
|
|
186 |
}
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
// ---------------------------------------------------------
|
|
192 |
// CApSelPopupList::SetHighlighted()
|
|
193 |
// called when needs to change the highlighting
|
|
194 |
// ---------------------------------------------------------
|
|
195 |
//
|
|
196 |
void CApSelPopupList::SetHighlighted()
|
|
197 |
{
|
|
198 |
}
|
|
199 |
|
|
200 |
|
|
201 |
// ---------------------------------------------------------
|
|
202 |
// CApSelPopupList::GetHelpContext()
|
|
203 |
// ---------------------------------------------------------
|
|
204 |
//
|
|
205 |
void CApSelPopupList::GetHelpContext(TCoeHelpContext& aContext) const
|
|
206 |
{
|
|
207 |
}
|
|
208 |
|
|
209 |
|
|
210 |
// ---------------------------------------------------------
|
|
211 |
// CApSelPopupList::HandleApDbEventL
|
|
212 |
// called by the active access point framework
|
|
213 |
// ---------------------------------------------------------
|
|
214 |
//
|
|
215 |
void CApSelPopupList::HandleApDbEventL( TEvent anEvent )
|
|
216 |
{
|
|
217 |
}
|
|
218 |
|
|
219 |
|
|
220 |
// ---------------------------------------------------------
|
|
221 |
// CApSelPopupList::ActivateL()
|
|
222 |
// called after the dialog is shown
|
|
223 |
// used to handle empty list - query
|
|
224 |
// ---------------------------------------------------------
|
|
225 |
//
|
|
226 |
void CApSelPopupList::ActivateL()
|
|
227 |
{
|
|
228 |
}
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
// ---------------------------------------------------------
|
|
233 |
// CApSelPopupList::SelectCurrentItemL()
|
|
234 |
// called after the setting had been changed
|
|
235 |
// ---------------------------------------------------------
|
|
236 |
//
|
|
237 |
void CApSelPopupList::SelectCurrentItemL()
|
|
238 |
{
|
|
239 |
}
|
|
240 |
|
|
241 |
|
|
242 |
|
|
243 |
// ---------------------------------------------------------
|
|
244 |
// CApSelPopupList::OkToExitL( TInt aButtonId )
|
|
245 |
// called by framework when the OK button is pressed
|
|
246 |
// ---------------------------------------------------------
|
|
247 |
//
|
|
248 |
TBool CApSelPopupList::OkToExitL( TInt aButtonId )
|
|
249 |
{
|
|
250 |
return EFalse;
|
|
251 |
}
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
// ---------------------------------------------------------
|
|
256 |
// CApSelPopupList::FillListBoxWithDataL()
|
|
257 |
// called when listbox needs to be filled with data
|
|
258 |
// ---------------------------------------------------------
|
|
259 |
//
|
|
260 |
void CApSelPopupList::FillListBoxWithDataL()
|
|
261 |
{
|
|
262 |
}
|
|
263 |
|
|
264 |
|
|
265 |
// ---------------------------------------------------------
|
|
266 |
// CApSelPopupList::SetSelectedL()
|
|
267 |
// ---------------------------------------------------------
|
|
268 |
//
|
|
269 |
void CApSelPopupList::SetSelectedL()
|
|
270 |
{
|
|
271 |
}
|
|
272 |
|
|
273 |
|
|
274 |
// ---------------------------------------------------------
|
|
275 |
// CApSelPopupList::CheckIfEmptyL()
|
|
276 |
// ---------------------------------------------------------
|
|
277 |
//
|
|
278 |
void CApSelPopupList::CheckIfEmptyL()
|
|
279 |
{
|
|
280 |
}
|
|
281 |
|
|
282 |
|
|
283 |
|
|
284 |
// ---------------------------------------------------------
|
|
285 |
// CApSelPopupList::DynInitMenuPaneL
|
|
286 |
// ---------------------------------------------------------
|
|
287 |
//
|
|
288 |
void CApSelPopupList::DynInitMenuPaneL( TInt aResourceId,
|
|
289 |
CEikMenuPane* aMenuPane )
|
|
290 |
{
|
|
291 |
}
|
|
292 |
|
|
293 |
|
|
294 |
// From MEikCommandObserver
|
|
295 |
// ---------------------------------------------------------
|
|
296 |
// CApSelPopupList::ProcessCommandL
|
|
297 |
// ---------------------------------------------------------
|
|
298 |
//
|
|
299 |
void CApSelPopupList::ProcessCommandL( TInt aCommandId )
|
|
300 |
{
|
|
301 |
}
|
|
302 |
|
|
303 |
|
|
304 |
// From MEikListBoxObserver
|
|
305 |
void CApSelPopupList::HandleListBoxEventL( CEikListBox* aListBox,
|
|
306 |
MEikListBoxObserver::TListBoxEvent aEventType )
|
|
307 |
{
|
|
308 |
}
|
|
309 |
|
|
310 |
|
|
311 |
// From CCoeControl
|
|
312 |
// ---------------------------------------------------------
|
|
313 |
// CApSelPopupList::OfferKeyEventL
|
|
314 |
// ---------------------------------------------------------
|
|
315 |
//
|
|
316 |
TKeyResponse CApSelPopupList::OfferKeyEventL( const TKeyEvent& aKeyEvent,
|
|
317 |
TEventCode aType)
|
|
318 |
{
|
|
319 |
User::Leave( KErrNotSupported );
|
|
320 |
}
|
|
321 |
|
|
322 |
|
|
323 |
|
|
324 |
|
|
325 |
// ---------------------------------------------------------
|
|
326 |
// CApSelPopupList::LoadIconsL
|
|
327 |
// ---------------------------------------------------------
|
|
328 |
//
|
|
329 |
TInt CApSelPopupList::LoadIconsL()
|
|
330 |
{
|
|
331 |
return 0;
|
|
332 |
}
|
|
333 |
|
|
334 |
|
|
335 |
|
|
336 |
|
|
337 |
// ---------------------------------------------------------
|
|
338 |
// CApSelPopupList::HandleResourceChange
|
|
339 |
// ---------------------------------------------------------
|
|
340 |
//
|
|
341 |
void CApSelPopupList::HandleResourceChange(TInt aType)
|
|
342 |
{
|
|
343 |
}
|
|
344 |
|
|
345 |
// End of File
|