|
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 the main handler, CApSettingsHandler and public API for |
|
16 * the Access Point settings. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <ActiveApDb.h> |
|
23 |
|
24 #include "ApSettingsHandlerUI.h" |
|
25 #include "ApsettingshandleruiImpl.h" |
|
26 #include "ApSettingsHandlerLogger.h" |
|
27 #include <data_caging_path_literals.hrh> |
|
28 |
|
29 |
|
30 // UID of general settings app, in which help texts are included |
|
31 const TUid KHelpUidApSettingsHandler = { 0x100058EC }; |
|
32 |
|
33 |
|
34 // ================= MEMBER FUNCTIONS ======================= |
|
35 |
|
36 // --------------------------------------------------------- |
|
37 // CApSettingsHandler::NewLC |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
41 TBool aStartWithSelection, |
|
42 TSelectionListType aListType, |
|
43 TSelectionMenuType aSelMenuType, |
|
44 TInt aIspFilter, |
|
45 TInt aBearerFilter, |
|
46 TInt aSortType ) |
|
47 { |
|
48 APSETUILOGGER_CREATE; |
|
49 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC") |
|
50 |
|
51 CApSettingsHandler* db = |
|
52 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
53 aListType, |
|
54 aSelMenuType ); |
|
55 CleanupStack::PushL( db ); |
|
56 |
|
57 |
|
58 |
|
59 db->ConstructL( aIspFilter, aBearerFilter, aSortType ); |
|
60 |
|
61 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC") |
|
62 |
|
63 return db; |
|
64 } |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // CApSettingsHandler::NewLC |
|
71 // --------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
74 CActiveApDb& aDb, |
|
75 TBool aStartWithSelection, |
|
76 TSelectionListType aListType, |
|
77 TSelectionMenuType aSelMenuType, |
|
78 TInt aIspFilter, |
|
79 TInt aBearerFilter, |
|
80 TInt aSortType |
|
81 ) |
|
82 { |
|
83 APSETUILOGGER_CREATE; |
|
84 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC2") |
|
85 |
|
86 CApSettingsHandler* db = |
|
87 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
88 aListType, |
|
89 aSelMenuType ); |
|
90 CleanupStack::PushL( db ); |
|
91 |
|
92 db->ConstructL( aDb, aIspFilter, aBearerFilter, aSortType ); |
|
93 |
|
94 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC2") |
|
95 |
|
96 return db; |
|
97 } |
|
98 |
|
99 |
|
100 |
|
101 // --------------------------------------------------------- |
|
102 // CApSettingsHandler::NewLC |
|
103 // --------------------------------------------------------- |
|
104 // |
|
105 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
106 TBool aStartWithSelection, |
|
107 TSelectionListType aListType, |
|
108 TSelectionMenuType aSelMenuType, |
|
109 TInt aIspFilter, |
|
110 TInt aBearerFilter, |
|
111 TInt aSortType, |
|
112 TInt aReqIpvType |
|
113 ) |
|
114 { |
|
115 APSETUILOGGER_CREATE; |
|
116 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC3") |
|
117 |
|
118 CApSettingsHandler* db = |
|
119 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
120 aListType, |
|
121 aSelMenuType, |
|
122 aReqIpvType |
|
123 ); |
|
124 CleanupStack::PushL( db ); |
|
125 |
|
126 db->ConstructL( aIspFilter, aBearerFilter, aSortType ); |
|
127 |
|
128 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC3") |
|
129 |
|
130 return db; |
|
131 } |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 // --------------------------------------------------------- |
|
137 // CApSettingsHandler::NewLC |
|
138 // --------------------------------------------------------- |
|
139 // |
|
140 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
141 CActiveApDb& aDb, |
|
142 TBool aStartWithSelection, |
|
143 TSelectionListType aListType, |
|
144 TSelectionMenuType aSelMenuType, |
|
145 TInt aIspFilter, |
|
146 TInt aBearerFilter, |
|
147 TInt aSortType, |
|
148 TInt aReqIpvType |
|
149 ) |
|
150 { |
|
151 APSETUILOGGER_CREATE; |
|
152 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC4") |
|
153 |
|
154 CApSettingsHandler* db = |
|
155 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
156 aListType, |
|
157 aSelMenuType, |
|
158 aReqIpvType |
|
159 ); |
|
160 CleanupStack::PushL( db ); |
|
161 |
|
162 db->ConstructL( aDb, aIspFilter, aBearerFilter, aSortType ); |
|
163 |
|
164 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC4") |
|
165 |
|
166 return db; |
|
167 } |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 // --------------------------------------------------------- |
|
174 // CApSettingsHandler::NewLC |
|
175 // --------------------------------------------------------- |
|
176 // |
|
177 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
178 TBool aStartWithSelection, |
|
179 TSelectionListType aListType, |
|
180 TSelectionMenuType aSelMenuType, |
|
181 TInt aIspFilter, |
|
182 TInt aBearerFilter, |
|
183 TInt aSortType, |
|
184 TInt aReqIpvType, |
|
185 TVpnFilterType aVpnFilterType |
|
186 ) |
|
187 { |
|
188 APSETUILOGGER_CREATE; |
|
189 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC5") |
|
190 |
|
191 CApSettingsHandler* db = |
|
192 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
193 aListType, |
|
194 aSelMenuType, |
|
195 aReqIpvType |
|
196 ); |
|
197 CleanupStack::PushL( db ); |
|
198 |
|
199 db->ConstructL( aIspFilter, aBearerFilter, |
|
200 aSortType, aVpnFilterType ); |
|
201 |
|
202 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC5") |
|
203 |
|
204 return db; |
|
205 } |
|
206 |
|
207 |
|
208 // --------------------------------------------------------- |
|
209 // CApSettingsHandler::NewLC |
|
210 // --------------------------------------------------------- |
|
211 // |
|
212 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
213 CActiveApDb& aDb, |
|
214 TBool aStartWithSelection, |
|
215 TSelectionListType aListType, |
|
216 TSelectionMenuType aSelMenuType, |
|
217 TInt aIspFilter, |
|
218 TInt aBearerFilter, |
|
219 TInt aSortType, |
|
220 TInt aReqIpvType, |
|
221 TVpnFilterType aVpnFilterType |
|
222 ) |
|
223 { |
|
224 APSETUILOGGER_CREATE; |
|
225 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC6") |
|
226 |
|
227 CApSettingsHandler* db = |
|
228 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
229 aListType, |
|
230 aSelMenuType, |
|
231 aReqIpvType |
|
232 ); |
|
233 CleanupStack::PushL( db ); |
|
234 |
|
235 db->ConstructL( aDb, aIspFilter, aBearerFilter, |
|
236 aSortType, aVpnFilterType ); |
|
237 |
|
238 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC6") |
|
239 |
|
240 return db; |
|
241 } |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 // --------------------------------------------------------- |
|
249 // CApSettingsHandler::NewLC |
|
250 // --------------------------------------------------------- |
|
251 // |
|
252 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC( |
|
253 CActiveApDb& aDb, |
|
254 TBool aStartWithSelection, |
|
255 TSelectionListType aListType, |
|
256 TSelectionMenuType aSelMenuType, |
|
257 TInt aIspFilter, |
|
258 TInt aBearerFilter, |
|
259 TInt aSortType, |
|
260 TInt aReqIpvType, |
|
261 TVpnFilterType aVpnFilterType, |
|
262 TBool aIncludeEasyWlan |
|
263 ) |
|
264 { |
|
265 APSETUILOGGER_CREATE; |
|
266 APSETUILOGGER_ENTERFN( EAPI,"Handler::NewLC7") |
|
267 |
|
268 CApSettingsHandler* db = |
|
269 new( ELeave ) CApSettingsHandler( aStartWithSelection, |
|
270 aListType, |
|
271 aSelMenuType, |
|
272 aReqIpvType |
|
273 ); |
|
274 CleanupStack::PushL( db ); |
|
275 |
|
276 db->ConstructL( aDb, aIspFilter, aBearerFilter, |
|
277 aSortType, aVpnFilterType, aIncludeEasyWlan ); |
|
278 |
|
279 APSETUILOGGER_LEAVEFN( EAPI,"Handler::NewLC7") |
|
280 return db; |
|
281 } |
|
282 |
|
283 |
|
284 // Destructor |
|
285 EXPORT_C CApSettingsHandler::~CApSettingsHandler() |
|
286 { |
|
287 APSETUILOGGER_DELETE; |
|
288 |
|
289 APSETUILOGGER_WRITE( EAPI,"Handler:: deleting implementation"); |
|
290 |
|
291 delete iImpl; |
|
292 |
|
293 APSETUILOGGER_WRITE( EAPI,"Handler::~finished"); |
|
294 } |
|
295 |
|
296 |
|
297 |
|
298 // Constructor |
|
299 EXPORT_C CApSettingsHandler::CApSettingsHandler( TBool aStartWithSelection, |
|
300 TSelectionListType aListType, |
|
301 TSelectionMenuType aSelMenuType |
|
302 ) |
|
303 :iStartWithSelection( aStartWithSelection ), |
|
304 iListType( aListType ), |
|
305 iSelMenuType( aSelMenuType ), |
|
306 iIspFilter( KEApIspTypeAll ), |
|
307 iBearerFilter( EApBearerTypeAll ), |
|
308 iReqIpvType( EIPv4 ), |
|
309 iEventStore( KApUiEventNone ) |
|
310 { |
|
311 iHelpMajor = KHelpUidApSettingsHandler; |
|
312 } |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 // Constructor |
|
319 CApSettingsHandler::CApSettingsHandler( TBool aStartWithSelection, |
|
320 TSelectionListType aListType, |
|
321 TSelectionMenuType aSelMenuType, |
|
322 TInt aReqIpvType |
|
323 ) |
|
324 :iStartWithSelection( aStartWithSelection ), |
|
325 iListType( aListType ), |
|
326 iSelMenuType( aSelMenuType ), |
|
327 iIspFilter( KEApIspTypeAll ), |
|
328 iBearerFilter( EApBearerTypeAll ), |
|
329 iReqIpvType( aReqIpvType ), |
|
330 iEventStore( KApUiEventNone ) |
|
331 { |
|
332 iHelpMajor = KHelpUidApSettingsHandler; |
|
333 } |
|
334 |
|
335 |
|
336 |
|
337 // --------------------------------------------------------- |
|
338 // CApSettingsHandler::ConstructL |
|
339 // --------------------------------------------------------- |
|
340 // |
|
341 EXPORT_C void CApSettingsHandler::ConstructL( TInt aIspFilter, |
|
342 TInt aBearerFilter, |
|
343 TInt aSortType ) |
|
344 { |
|
345 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL") |
|
346 |
|
347 DoConstructL( NULL, aIspFilter, aBearerFilter, |
|
348 aSortType, EVpnFilterBoth, EFalse ); |
|
349 |
|
350 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL") |
|
351 } |
|
352 |
|
353 |
|
354 |
|
355 // --------------------------------------------------------- |
|
356 // CApSettingsHandler::ConstructL |
|
357 // --------------------------------------------------------- |
|
358 // |
|
359 EXPORT_C void CApSettingsHandler::ConstructL( CActiveApDb& aDb, |
|
360 TInt aIspFilter, |
|
361 TInt aBearerFilter, |
|
362 TInt aSortType ) |
|
363 { |
|
364 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL2") |
|
365 |
|
366 DoConstructL( &aDb, aIspFilter, aBearerFilter, |
|
367 aSortType, EVpnFilterBoth, EFalse ); |
|
368 |
|
369 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL2") |
|
370 } |
|
371 |
|
372 |
|
373 |
|
374 // --------------------------------------------------------- |
|
375 // CApSettingsHandler::ConstructL |
|
376 // --------------------------------------------------------- |
|
377 // |
|
378 EXPORT_C void CApSettingsHandler::ConstructL( |
|
379 TInt aIspFilter, |
|
380 TInt aBearerFilter, |
|
381 TInt aSortType, |
|
382 TVpnFilterType aVpnFilterType |
|
383 ) |
|
384 { |
|
385 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL3") |
|
386 |
|
387 DoConstructL( NULL, aIspFilter, aBearerFilter, |
|
388 aSortType, aVpnFilterType, EFalse ); |
|
389 |
|
390 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL3") |
|
391 } |
|
392 |
|
393 |
|
394 |
|
395 // --------------------------------------------------------- |
|
396 // CApSettingsHandler::ConstructL |
|
397 // --------------------------------------------------------- |
|
398 // |
|
399 EXPORT_C void CApSettingsHandler::ConstructL( |
|
400 CActiveApDb& aDb, |
|
401 TInt aIspFilter, |
|
402 TInt aBearerFilter, |
|
403 TInt aSortType, |
|
404 TVpnFilterType aVpnFilterType |
|
405 ) |
|
406 { |
|
407 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL4") |
|
408 |
|
409 DoConstructL( &aDb, aIspFilter, aBearerFilter, |
|
410 aSortType, aVpnFilterType, EFalse ); |
|
411 |
|
412 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL4") |
|
413 } |
|
414 |
|
415 |
|
416 |
|
417 |
|
418 // --------------------------------------------------------- |
|
419 // CApSettingsHandler::ConstructL |
|
420 // --------------------------------------------------------- |
|
421 // |
|
422 EXPORT_C void CApSettingsHandler::ConstructL( |
|
423 CActiveApDb& aDb, |
|
424 TInt aIspFilter, |
|
425 TInt aBearerFilter, |
|
426 TInt aSortType, |
|
427 TVpnFilterType aVpnFilterType, |
|
428 TBool aIncludeEasyWlan |
|
429 ) |
|
430 { |
|
431 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL5") |
|
432 |
|
433 DoConstructL( &aDb, aIspFilter, aBearerFilter, |
|
434 aSortType, aVpnFilterType, aIncludeEasyWlan ); |
|
435 |
|
436 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL5") |
|
437 } |
|
438 |
|
439 |
|
440 // --------------------------------------------------------- |
|
441 // CApSettingsHandler::SetFilter |
|
442 // --------------------------------------------------------- |
|
443 // |
|
444 EXPORT_C void CApSettingsHandler::SetFilterL( TInt aIspFilter, |
|
445 TInt aBearerFilter, |
|
446 TInt aSortType ) |
|
447 { |
|
448 APSETUILOGGER_ENTERFN( EAPI,"Handler::SetFilterL") |
|
449 |
|
450 iImpl->SetFilterL( aIspFilter, aBearerFilter, aSortType ); |
|
451 |
|
452 APSETUILOGGER_LEAVEFN( EAPI,"Handler::SetFilterL") |
|
453 } |
|
454 |
|
455 |
|
456 |
|
457 |
|
458 // --------------------------------------------------------- |
|
459 // CApSettingsHandler::SetTextOverrideL |
|
460 // --------------------------------------------------------- |
|
461 // |
|
462 EXPORT_C void CApSettingsHandler::SetTextOverrideL( TTextID aText2Change, |
|
463 const TDesC& aNewText ) |
|
464 { |
|
465 APSETUILOGGER_ENTERFN( EAPI,"Handler::SetTextOverrideL") |
|
466 |
|
467 __ASSERT_DEBUG( iImpl, Panic( ENullPointer ) ); |
|
468 iImpl->SetTextOverrideL( aText2Change, aNewText ); |
|
469 |
|
470 APSETUILOGGER_LEAVEFN( EAPI,"Handler::SetTextOverrideL") |
|
471 } |
|
472 |
|
473 |
|
474 // --------------------------------------------------------- |
|
475 // CApSettingsHandler::TextOverrideL |
|
476 // --------------------------------------------------------- |
|
477 // |
|
478 EXPORT_C const TDesC& CApSettingsHandler::TextOverrideL( TTextID aTextId ) |
|
479 { |
|
480 APSETUILOGGER_ENTERFN( EAPI,"Handler::TextOverrideL<->") |
|
481 |
|
482 __ASSERT_DEBUG( iImpl, Panic( ENullPointer ) ); |
|
483 return iImpl->TextOverrideL( aTextId ); |
|
484 } |
|
485 |
|
486 |
|
487 |
|
488 // --------------------------------------------------------- |
|
489 // CApSettingsHandler::RunSettingsL |
|
490 // --------------------------------------------------------- |
|
491 // |
|
492 EXPORT_C TInt CApSettingsHandler::RunSettingsL( TUint32 aHighLight, |
|
493 TUint32& aSelected ) |
|
494 { |
|
495 APSETUILOGGER_ENTERFN( EAPI,"Handler::RunSettingsL") |
|
496 |
|
497 iImpl->RunSettingsL( aHighLight, aSelected ); |
|
498 |
|
499 APSETUILOGGER_LEAVEFN( EAPI,"Handler::RunSettingsL") |
|
500 |
|
501 return iImpl->EventStore(); |
|
502 } |
|
503 |
|
504 |
|
505 |
|
506 // --------------------------------------------------------- |
|
507 // CApSettingsHandler::Cvt() |
|
508 // --------------------------------------------------------- |
|
509 // |
|
510 EXPORT_C TInt CApSettingsHandler::Cvt() |
|
511 { |
|
512 APSETUILOGGER_ENTERFN( EAPI,"Handler::Cvt<->") |
|
513 return KErrNone; |
|
514 } |
|
515 |
|
516 |
|
517 // --------------------------------------------------------- |
|
518 // CApSettingsHandler::DoRunSettingsL |
|
519 // --------------------------------------------------------- |
|
520 // |
|
521 TInt CApSettingsHandler::DoRunSettingsL( TUint32 /*aHighLight*/, |
|
522 TUint32& /*aSelected*/ ) |
|
523 { |
|
524 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunSettingsL@Deprecated") |
|
525 |
|
526 // Deprecated as moved to iImpl |
|
527 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
528 User::Leave(KErrNotSupported); |
|
529 return KErrNone; |
|
530 } |
|
531 |
|
532 |
|
533 // --------------------------------------------------------- |
|
534 // CApSettingsHandler::RunViewerL |
|
535 // --------------------------------------------------------- |
|
536 // |
|
537 EXPORT_C TInt CApSettingsHandler::RunViewerL( TUint32 aUid ) |
|
538 { |
|
539 APSETUILOGGER_ENTERFN( EAPI,"Handler::RunViewerL") |
|
540 |
|
541 iImpl->RunViewerL( aUid ); |
|
542 |
|
543 APSETUILOGGER_LEAVEFN( EAPI,"Handler::RunViewerL") |
|
544 |
|
545 return iImpl->EventStore(); |
|
546 } |
|
547 |
|
548 |
|
549 |
|
550 // --------------------------------------------------------- |
|
551 // CApSettingsHandler::DoRunViewerL |
|
552 // --------------------------------------------------------- |
|
553 // |
|
554 TInt CApSettingsHandler::DoRunViewerL( TUint32 /*aUid*/ ) |
|
555 { |
|
556 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunViewerL@Deprecated") |
|
557 |
|
558 // Deprecated as moved to iImpl |
|
559 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
560 User::Leave(KErrNotSupported); |
|
561 return KErrNone; |
|
562 } |
|
563 |
|
564 |
|
565 |
|
566 //---------------------------------------------------------- |
|
567 // CApSettingsHandler::HandleApDeleteCmdL |
|
568 //---------------------------------------------------------- |
|
569 // |
|
570 void CApSettingsHandler::HandleApDeleteCmdL( TUint32 /*aUid*/, |
|
571 TBool /*aIsLast*/ ) |
|
572 { |
|
573 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleApDeleteCmdL@Deprecated") |
|
574 |
|
575 // Deprecated as moved to iImpl |
|
576 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
577 User::Leave(KErrNotSupported); |
|
578 } |
|
579 |
|
580 |
|
581 //---------------------------------------------------------- |
|
582 // CApSettingsHandler::HandleApBlankNewL |
|
583 //---------------------------------------------------------- |
|
584 // |
|
585 TUint32 CApSettingsHandler::HandleApBlankNewL( TInt /*aBearers*/, |
|
586 TInt /*aIsps*/ ) |
|
587 { |
|
588 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleApBlankNewL@Deprecated") |
|
589 |
|
590 // Deprecated as moved to iImpl |
|
591 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
592 User::Leave(KErrNotSupported); |
|
593 return KErrNone; |
|
594 } |
|
595 |
|
596 |
|
597 |
|
598 //---------------------------------------------------------- |
|
599 // CApSettingsHandler::HandleApUseOldNewL |
|
600 //---------------------------------------------------------- |
|
601 // |
|
602 TUint32 CApSettingsHandler::HandleApUseOldNewL() |
|
603 { |
|
604 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleApUseOldNewL@Deprecated") |
|
605 |
|
606 // Deprecated as moved to iImpl |
|
607 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
608 User::Leave(KErrNotSupported); |
|
609 return KErrNone; |
|
610 } |
|
611 |
|
612 |
|
613 |
|
614 //---------------------------------------------------------- |
|
615 // CApSettingsHandler::EditAfterCreateL |
|
616 //---------------------------------------------------------- |
|
617 // |
|
618 TUint32 CApSettingsHandler::EditAfterCreateL( TUint32 /*aUid*/, |
|
619 CApAccessPointItem* /*aItem*/ ) |
|
620 { |
|
621 APSETUILOGGER_ENTERFN( EAPI,"Handler::EditAfterCreateL@Deprecated") |
|
622 |
|
623 // Deprecated as moved to iImpl |
|
624 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
625 User::Leave(KErrNotSupported); |
|
626 return KErrNone; |
|
627 } |
|
628 |
|
629 |
|
630 |
|
631 //---------------------------------------------------------- |
|
632 // CApSettingsHandler::DoConstructL |
|
633 //---------------------------------------------------------- |
|
634 // |
|
635 void CApSettingsHandler::DoConstructL( CActiveApDb* aDb, |
|
636 TInt aIspFilter, |
|
637 TInt aBearerFilter, |
|
638 TInt aSortType, |
|
639 TVpnFilterType aVpnFilterType, |
|
640 TBool aIncludeEasyWlan ) |
|
641 { |
|
642 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoConstructL") |
|
643 |
|
644 // must place it to a temp variable, otherwise CodeScanner reports |
|
645 // it as a bad practice putting up member to Cleanupstack, but |
|
646 // we have NO NewL so we must use this. |
|
647 CApSettingsHandlerImpl* tmp = CApSettingsHandlerImpl::NewLC( |
|
648 *aDb, iStartWithSelection, |
|
649 iListType, iSelMenuType, |
|
650 aIspFilter, aBearerFilter, |
|
651 aSortType, iReqIpvType, |
|
652 aVpnFilterType, aIncludeEasyWlan, |
|
653 ETrue ); |
|
654 CleanupStack::Pop(tmp); // will soon be a member, need to pop |
|
655 iImpl = tmp; |
|
656 |
|
657 APSETUILOGGER_LEAVEFN( EAPI,"Handler::DoConstructL") |
|
658 } |
|
659 |
|
660 |
|
661 |
|
662 |
|
663 //---------------------------------------------------------- |
|
664 // CApSettingsHandler::DoRunSetPageSettingsL |
|
665 //---------------------------------------------------------- |
|
666 // |
|
667 void CApSettingsHandler::DoRunSetPageSettingsL( TUint32 /*aHighLight*/, |
|
668 TUint32& /*aSelected*/ ) |
|
669 { |
|
670 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunSetPageSettingsL@Deprecated") |
|
671 |
|
672 // Deprecated as moved to iImpl |
|
673 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
674 User::Leave(KErrNotSupported); |
|
675 } |
|
676 |
|
677 |
|
678 |
|
679 //---------------------------------------------------------- |
|
680 // CApSettingsHandler::DoRunListSettingsL |
|
681 //---------------------------------------------------------- |
|
682 // |
|
683 void CApSettingsHandler::DoRunListSettingsL( TUint32 /*aHighLight*/, |
|
684 TUint32& /*aSelected*/ ) |
|
685 { |
|
686 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunListSettingsL@Deprecated") |
|
687 |
|
688 // Deprecated as moved to iImpl |
|
689 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
690 User::Leave(KErrNotSupported); |
|
691 } |
|
692 |
|
693 |
|
694 |
|
695 //---------------------------------------------------------- |
|
696 // CApSettingsHandler::DoHandleApUseOldNewL |
|
697 //---------------------------------------------------------- |
|
698 // |
|
699 TUint32 CApSettingsHandler::DoHandleApUseOldNewL( TUint32 /*aSelected*/ ) |
|
700 { |
|
701 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoHandleApUseOldNewL@Deprecated") |
|
702 |
|
703 // Deprecated as moved to iImpl |
|
704 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
705 User::Leave(KErrNotSupported); |
|
706 return KErrNone; |
|
707 } |
|
708 |
|
709 |
|
710 |
|
711 //---------------------------------------------------------- |
|
712 // CApSettingsHandler::SelectApToCopyL |
|
713 //---------------------------------------------------------- |
|
714 // |
|
715 TUint32 CApSettingsHandler::SelectApToCopyL() |
|
716 { |
|
717 APSETUILOGGER_ENTERFN( EAPI,"Handler::SelectApToCopyL@Deprecated") |
|
718 |
|
719 // Deprecated as moved to iImpl |
|
720 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
721 User::Leave(KErrNotSupported); |
|
722 return KErrNone; |
|
723 } |
|
724 |
|
725 |
|
726 |
|
727 //---------------------------------------------------------- |
|
728 // CApSettingsHandler::DoHandleApBlankNewL |
|
729 //---------------------------------------------------------- |
|
730 // |
|
731 TUint32 CApSettingsHandler::DoHandleApBlankNewL( TInt /*aBearers*/, TInt /*aIsps*/ ) |
|
732 { |
|
733 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoHandleApBlankNewL@Deprecated") |
|
734 |
|
735 // Deprecated as moved to iImpl |
|
736 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
737 User::Leave(KErrNotSupported); |
|
738 return KErrNone; |
|
739 } |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 //---------------------------------------------------------- |
|
745 // CApSettingsHandler::HandleNetworkDeleteCmdL |
|
746 //---------------------------------------------------------- |
|
747 // |
|
748 void CApSettingsHandler::HandleNetworkDeleteCmdL( TUint32 /*aUid*/ ) |
|
749 { |
|
750 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleNetworkDeleteCmdL@Deprecated") |
|
751 |
|
752 // Deprecated as moved to iImpl |
|
753 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
754 User::Leave(KErrNotSupported); |
|
755 } |
|
756 |
|
757 |
|
758 |
|
759 //---------------------------------------------------------- |
|
760 // CApSettingsHandler::GetVariantL |
|
761 //---------------------------------------------------------- |
|
762 // |
|
763 TInt CApSettingsHandler::GetVariantL() |
|
764 { |
|
765 APSETUILOGGER_ENTERFN( EAPI,"Handler::GetVariantL@Deprecated") |
|
766 |
|
767 // Deprecated as moved to iImpl |
|
768 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
769 User::Leave(KErrNotSupported); |
|
770 return KErrNone; |
|
771 } |
|
772 |
|
773 |
|
774 //---------------------------------------------------------- |
|
775 // CApSettingsHandler::ConfirmDeleteL |
|
776 //---------------------------------------------------------- |
|
777 // |
|
778 TInt CApSettingsHandler::ConfirmDeleteL( TUint32 /*aUid*/, TBool /*aIsLast*/ ) |
|
779 { |
|
780 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConfirmDeleteL@Deprecated") |
|
781 |
|
782 // Deprecated as moved to iImpl |
|
783 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
784 User::Leave(KErrNotSupported); |
|
785 return KErrNone; |
|
786 } |
|
787 |
|
788 |
|
789 |
|
790 //---------------------------------------------------------- |
|
791 // CApSettingsHandler::HandleRunSettingsL |
|
792 //---------------------------------------------------------- |
|
793 // |
|
794 void CApSettingsHandler::HandleRunSettingsL( TUint32 /*aHighLight*/, |
|
795 TUint32& /*aSelected*/ ) |
|
796 { |
|
797 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleRunSettingsL@Deprecated") |
|
798 |
|
799 // Deprecated as moved to iImpl |
|
800 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
801 User::Leave(KErrNotSupported); |
|
802 } |
|
803 |
|
804 |
|
805 |
|
806 //---------------------------------------------------------- |
|
807 // CApSettingsHandler::ChooseBearerTypeL |
|
808 //---------------------------------------------------------- |
|
809 // |
|
810 void CApSettingsHandler::ChooseBearerTypeL( TInt /*aBearers*/, |
|
811 CApAccessPointItem& /*aItem*/ ) |
|
812 { |
|
813 APSETUILOGGER_ENTERFN( EAPI,"Handler::ChooseBearerTypeL@Deprecated") |
|
814 |
|
815 // Deprecated as moved to iImpl |
|
816 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
817 User::Leave(KErrNotSupported); |
|
818 } |
|
819 |
|
820 |
|
821 |
|
822 |
|
823 //---------------------------------------------------------- |
|
824 // CApSettingsHandler::HandleDuplicateL |
|
825 //---------------------------------------------------------- |
|
826 // |
|
827 TUint32 CApSettingsHandler::HandleDuplicateL( TUint32 /*aUid*/ ) |
|
828 { |
|
829 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleDuplicateL@Deprecated") |
|
830 |
|
831 // Deprecated as moved to iImpl |
|
832 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
833 User::Leave(KErrNotSupported); |
|
834 return KErrNone; |
|
835 } |
|
836 |
|
837 |
|
838 // End of File |
|
839 |