183 TInt aSortType, |
125 TInt aSortType, |
184 TInt aReqIpvType, |
126 TInt aReqIpvType, |
185 TVpnFilterType aVpnFilterType |
127 TVpnFilterType aVpnFilterType |
186 ) |
128 ) |
187 { |
129 { |
188 APSETUILOGGER_CREATE; |
130 return NULL; |
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 } |
131 } |
206 |
132 |
207 |
133 |
208 // --------------------------------------------------------- |
134 // --------------------------------------------------------- |
209 // CApSettingsHandler::NewLC |
135 // CApSettingsHandler::NewLC |
260 TInt aReqIpvType, |
170 TInt aReqIpvType, |
261 TVpnFilterType aVpnFilterType, |
171 TVpnFilterType aVpnFilterType, |
262 TBool aIncludeEasyWlan |
172 TBool aIncludeEasyWlan |
263 ) |
173 ) |
264 { |
174 { |
265 APSETUILOGGER_CREATE; |
175 return NULL; |
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 } |
176 } |
282 |
177 |
283 |
178 |
284 // Destructor |
179 // Destructor |
285 EXPORT_C CApSettingsHandler::~CApSettingsHandler() |
180 EXPORT_C CApSettingsHandler::~CApSettingsHandler() |
286 { |
181 { |
287 APSETUILOGGER_DELETE; |
|
288 |
|
289 APSETUILOGGER_WRITE( EAPI,"Handler:: deleting implementation"); |
|
290 |
|
291 delete iImpl; |
|
292 |
|
293 APSETUILOGGER_WRITE( EAPI,"Handler::~finished"); |
|
294 } |
182 } |
295 |
183 |
296 |
184 |
297 |
185 |
298 // Constructor |
186 // Constructor |
426 TInt aSortType, |
288 TInt aSortType, |
427 TVpnFilterType aVpnFilterType, |
289 TVpnFilterType aVpnFilterType, |
428 TBool aIncludeEasyWlan |
290 TBool aIncludeEasyWlan |
429 ) |
291 ) |
430 { |
292 { |
431 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConstructL5") |
|
432 |
|
433 DoConstructL( &aDb, aIspFilter, aBearerFilter, |
|
434 aSortType, aVpnFilterType, aIncludeEasyWlan ); |
|
435 |
|
436 APSETUILOGGER_LEAVEFN( EAPI,"Handler::ConstructL5") |
|
437 } |
293 } |
438 |
294 |
439 |
295 |
440 // --------------------------------------------------------- |
296 // --------------------------------------------------------- |
441 // CApSettingsHandler::SetFilter |
297 // CApSettingsHandler::SetFilter |
460 // --------------------------------------------------------- |
311 // --------------------------------------------------------- |
461 // |
312 // |
462 EXPORT_C void CApSettingsHandler::SetTextOverrideL( TTextID aText2Change, |
313 EXPORT_C void CApSettingsHandler::SetTextOverrideL( TTextID aText2Change, |
463 const TDesC& aNewText ) |
314 const TDesC& aNewText ) |
464 { |
315 { |
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 } |
316 } |
472 |
317 |
473 |
318 |
474 // --------------------------------------------------------- |
319 // --------------------------------------------------------- |
475 // CApSettingsHandler::TextOverrideL |
320 // CApSettingsHandler::TextOverrideL |
476 // --------------------------------------------------------- |
321 // --------------------------------------------------------- |
477 // |
322 // |
478 EXPORT_C const TDesC& CApSettingsHandler::TextOverrideL( TTextID aTextId ) |
323 EXPORT_C const TDesC& CApSettingsHandler::TextOverrideL( TTextID aTextId ) |
479 { |
324 { |
480 APSETUILOGGER_ENTERFN( EAPI,"Handler::TextOverrideL<->") |
325 User::Leave( KErrNotSupported ); |
481 |
|
482 __ASSERT_DEBUG( iImpl, Panic( ENullPointer ) ); |
|
483 return iImpl->TextOverrideL( aTextId ); |
|
484 } |
326 } |
485 |
327 |
486 |
328 |
487 |
329 |
488 // --------------------------------------------------------- |
330 // --------------------------------------------------------- |
490 // --------------------------------------------------------- |
332 // --------------------------------------------------------- |
491 // |
333 // |
492 EXPORT_C TInt CApSettingsHandler::RunSettingsL( TUint32 aHighLight, |
334 EXPORT_C TInt CApSettingsHandler::RunSettingsL( TUint32 aHighLight, |
493 TUint32& aSelected ) |
335 TUint32& aSelected ) |
494 { |
336 { |
495 APSETUILOGGER_ENTERFN( EAPI,"Handler::RunSettingsL") |
337 return 0; |
496 |
|
497 iImpl->RunSettingsL( aHighLight, aSelected ); |
|
498 |
|
499 APSETUILOGGER_LEAVEFN( EAPI,"Handler::RunSettingsL") |
|
500 |
|
501 return iImpl->EventStore(); |
|
502 } |
338 } |
503 |
339 |
504 |
340 |
505 |
341 |
506 // --------------------------------------------------------- |
342 // --------------------------------------------------------- |
507 // CApSettingsHandler::Cvt() |
343 // CApSettingsHandler::Cvt() |
508 // --------------------------------------------------------- |
344 // --------------------------------------------------------- |
509 // |
345 // |
510 EXPORT_C TInt CApSettingsHandler::Cvt() |
346 EXPORT_C TInt CApSettingsHandler::Cvt() |
511 { |
347 { |
512 APSETUILOGGER_ENTERFN( EAPI,"Handler::Cvt<->") |
348 return KErrNotSupported; |
513 return KErrNone; |
|
514 } |
349 } |
515 |
350 |
516 |
351 |
517 // --------------------------------------------------------- |
352 // --------------------------------------------------------- |
518 // CApSettingsHandler::DoRunSettingsL |
353 // CApSettingsHandler::DoRunSettingsL |
519 // --------------------------------------------------------- |
354 // --------------------------------------------------------- |
520 // |
355 // |
521 TInt CApSettingsHandler::DoRunSettingsL( TUint32 /*aHighLight*/, |
356 TInt CApSettingsHandler::DoRunSettingsL( TUint32 /*aHighLight*/, |
522 TUint32& /*aSelected*/ ) |
357 TUint32& /*aSelected*/ ) |
523 { |
358 { |
524 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunSettingsL@Deprecated") |
359 User::Leave(KErrNotSupported); |
525 |
360 return KErrNotSupported; |
526 // Deprecated as moved to iImpl |
|
527 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
528 User::Leave(KErrNotSupported); |
|
529 return KErrNone; |
|
530 } |
361 } |
531 |
362 |
532 |
363 |
533 // --------------------------------------------------------- |
364 // --------------------------------------------------------- |
534 // CApSettingsHandler::RunViewerL |
365 // CApSettingsHandler::RunViewerL |
535 // --------------------------------------------------------- |
366 // --------------------------------------------------------- |
536 // |
367 // |
537 EXPORT_C TInt CApSettingsHandler::RunViewerL( TUint32 aUid ) |
368 EXPORT_C TInt CApSettingsHandler::RunViewerL( TUint32 aUid ) |
538 { |
369 { |
539 APSETUILOGGER_ENTERFN( EAPI,"Handler::RunViewerL") |
370 return 0; |
540 |
|
541 iImpl->RunViewerL( aUid ); |
|
542 |
|
543 APSETUILOGGER_LEAVEFN( EAPI,"Handler::RunViewerL") |
|
544 |
|
545 return iImpl->EventStore(); |
|
546 } |
371 } |
547 |
372 |
548 |
373 |
549 |
374 |
550 // --------------------------------------------------------- |
375 // --------------------------------------------------------- |
551 // CApSettingsHandler::DoRunViewerL |
376 // CApSettingsHandler::DoRunViewerL |
552 // --------------------------------------------------------- |
377 // --------------------------------------------------------- |
553 // |
378 // |
554 TInt CApSettingsHandler::DoRunViewerL( TUint32 /*aUid*/ ) |
379 TInt CApSettingsHandler::DoRunViewerL( TUint32 /*aUid*/ ) |
555 { |
380 { |
556 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoRunViewerL@Deprecated") |
381 User::Leave(KErrNotSupported); |
557 |
382 return KErrNotSupported; |
558 // Deprecated as moved to iImpl |
|
559 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
560 User::Leave(KErrNotSupported); |
|
561 return KErrNone; |
|
562 } |
383 } |
563 |
384 |
564 |
385 |
565 |
386 |
566 //---------------------------------------------------------- |
387 //---------------------------------------------------------- |
583 //---------------------------------------------------------- |
400 //---------------------------------------------------------- |
584 // |
401 // |
585 TUint32 CApSettingsHandler::HandleApBlankNewL( TInt /*aBearers*/, |
402 TUint32 CApSettingsHandler::HandleApBlankNewL( TInt /*aBearers*/, |
586 TInt /*aIsps*/ ) |
403 TInt /*aIsps*/ ) |
587 { |
404 { |
588 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleApBlankNewL@Deprecated") |
405 User::Leave(KErrNotSupported); |
589 |
406 return KErrNotSupported; |
590 // Deprecated as moved to iImpl |
|
591 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
592 User::Leave(KErrNotSupported); |
|
593 return KErrNone; |
|
594 } |
407 } |
595 |
408 |
596 |
409 |
597 |
410 |
598 //---------------------------------------------------------- |
411 //---------------------------------------------------------- |
599 // CApSettingsHandler::HandleApUseOldNewL |
412 // CApSettingsHandler::HandleApUseOldNewL |
600 //---------------------------------------------------------- |
413 //---------------------------------------------------------- |
601 // |
414 // |
602 TUint32 CApSettingsHandler::HandleApUseOldNewL() |
415 TUint32 CApSettingsHandler::HandleApUseOldNewL() |
603 { |
416 { |
604 APSETUILOGGER_ENTERFN( EAPI,"Handler::HandleApUseOldNewL@Deprecated") |
|
605 |
|
606 // Deprecated as moved to iImpl |
|
607 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
608 User::Leave(KErrNotSupported); |
417 User::Leave(KErrNotSupported); |
609 return KErrNone; |
418 return KErrNone; |
610 } |
419 } |
611 |
420 |
612 |
421 |
616 //---------------------------------------------------------- |
425 //---------------------------------------------------------- |
617 // |
426 // |
618 TUint32 CApSettingsHandler::EditAfterCreateL( TUint32 /*aUid*/, |
427 TUint32 CApSettingsHandler::EditAfterCreateL( TUint32 /*aUid*/, |
619 CApAccessPointItem* /*aItem*/ ) |
428 CApAccessPointItem* /*aItem*/ ) |
620 { |
429 { |
621 APSETUILOGGER_ENTERFN( EAPI,"Handler::EditAfterCreateL@Deprecated") |
430 User::Leave(KErrNotSupported); |
622 |
431 return KErrNotSupported; |
623 // Deprecated as moved to iImpl |
|
624 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
625 User::Leave(KErrNotSupported); |
|
626 return KErrNone; |
|
627 } |
432 } |
628 |
433 |
629 |
434 |
630 |
435 |
631 //---------------------------------------------------------- |
436 //---------------------------------------------------------- |
637 TInt aBearerFilter, |
442 TInt aBearerFilter, |
638 TInt aSortType, |
443 TInt aSortType, |
639 TVpnFilterType aVpnFilterType, |
444 TVpnFilterType aVpnFilterType, |
640 TBool aIncludeEasyWlan ) |
445 TBool aIncludeEasyWlan ) |
641 { |
446 { |
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 } |
447 } |
659 |
448 |
660 |
449 |
661 |
450 |
662 |
451 |
696 // CApSettingsHandler::DoHandleApUseOldNewL |
477 // CApSettingsHandler::DoHandleApUseOldNewL |
697 //---------------------------------------------------------- |
478 //---------------------------------------------------------- |
698 // |
479 // |
699 TUint32 CApSettingsHandler::DoHandleApUseOldNewL( TUint32 /*aSelected*/ ) |
480 TUint32 CApSettingsHandler::DoHandleApUseOldNewL( TUint32 /*aSelected*/ ) |
700 { |
481 { |
701 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoHandleApUseOldNewL@Deprecated") |
482 User::Leave(KErrNotSupported); |
702 |
483 return KErrNotSupported; |
703 // Deprecated as moved to iImpl |
|
704 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
705 User::Leave(KErrNotSupported); |
|
706 return KErrNone; |
|
707 } |
484 } |
708 |
485 |
709 |
486 |
710 |
487 |
711 //---------------------------------------------------------- |
488 //---------------------------------------------------------- |
712 // CApSettingsHandler::SelectApToCopyL |
489 // CApSettingsHandler::SelectApToCopyL |
713 //---------------------------------------------------------- |
490 //---------------------------------------------------------- |
714 // |
491 // |
715 TUint32 CApSettingsHandler::SelectApToCopyL() |
492 TUint32 CApSettingsHandler::SelectApToCopyL() |
716 { |
493 { |
717 APSETUILOGGER_ENTERFN( EAPI,"Handler::SelectApToCopyL@Deprecated") |
494 User::Leave(KErrNotSupported); |
718 |
495 return KErrNotSupported; |
719 // Deprecated as moved to iImpl |
|
720 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
721 User::Leave(KErrNotSupported); |
|
722 return KErrNone; |
|
723 } |
496 } |
724 |
497 |
725 |
498 |
726 |
499 |
727 //---------------------------------------------------------- |
500 //---------------------------------------------------------- |
728 // CApSettingsHandler::DoHandleApBlankNewL |
501 // CApSettingsHandler::DoHandleApBlankNewL |
729 //---------------------------------------------------------- |
502 //---------------------------------------------------------- |
730 // |
503 // |
731 TUint32 CApSettingsHandler::DoHandleApBlankNewL( TInt /*aBearers*/, TInt /*aIsps*/ ) |
504 TUint32 CApSettingsHandler::DoHandleApBlankNewL( TInt /*aBearers*/, TInt /*aIsps*/ ) |
732 { |
505 { |
733 APSETUILOGGER_ENTERFN( EAPI,"Handler::DoHandleApBlankNewL@Deprecated") |
506 User::Leave(KErrNotSupported); |
734 |
507 return KErrNotSupported; |
735 // Deprecated as moved to iImpl |
|
736 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
737 User::Leave(KErrNotSupported); |
|
738 return KErrNone; |
|
739 } |
508 } |
740 |
509 |
741 |
510 |
742 |
511 |
743 |
512 |
760 // CApSettingsHandler::GetVariantL |
525 // CApSettingsHandler::GetVariantL |
761 //---------------------------------------------------------- |
526 //---------------------------------------------------------- |
762 // |
527 // |
763 TInt CApSettingsHandler::GetVariantL() |
528 TInt CApSettingsHandler::GetVariantL() |
764 { |
529 { |
765 APSETUILOGGER_ENTERFN( EAPI,"Handler::GetVariantL@Deprecated") |
530 User::Leave(KErrNotSupported); |
766 |
531 return KErrNotSupported; |
767 // Deprecated as moved to iImpl |
|
768 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
769 User::Leave(KErrNotSupported); |
|
770 return KErrNone; |
|
771 } |
532 } |
772 |
533 |
773 |
534 |
774 //---------------------------------------------------------- |
535 //---------------------------------------------------------- |
775 // CApSettingsHandler::ConfirmDeleteL |
536 // CApSettingsHandler::ConfirmDeleteL |
776 //---------------------------------------------------------- |
537 //---------------------------------------------------------- |
777 // |
538 // |
778 TInt CApSettingsHandler::ConfirmDeleteL( TUint32 /*aUid*/, TBool /*aIsLast*/ ) |
539 TInt CApSettingsHandler::ConfirmDeleteL( TUint32 /*aUid*/, TBool /*aIsLast*/ ) |
779 { |
540 { |
780 APSETUILOGGER_ENTERFN( EAPI,"Handler::ConfirmDeleteL@Deprecated") |
541 User::Leave(KErrNotSupported); |
781 |
542 return KErrNotSupported; |
782 // Deprecated as moved to iImpl |
|
783 __ASSERT_DEBUG( EFalse, Panic( ENullPointer ) ); |
|
784 User::Leave(KErrNotSupported); |
|
785 return KErrNone; |
|
786 } |
543 } |
787 |
544 |
788 |
545 |
789 |
546 |
790 //---------------------------------------------------------- |
547 //---------------------------------------------------------- |