41 _LIT( KPacservername, "pacservername"); |
41 _LIT( KPacservername, "pacservername"); |
42 _LIT( KPacfilename, "pacfilename"); |
42 _LIT( KPacfilename, "pacfilename"); |
43 _LIT( KEaptype, "eaptype"); |
43 _LIT( KEaptype, "eaptype"); |
44 _LIT( KMessage, "messagetxt"); |
44 _LIT( KMessage, "messagetxt"); |
45 _LIT( KFastprovwaitnote, "notificationtxt"); |
45 _LIT( KFastprovwaitnote, "notificationtxt"); |
|
46 _LIT( KPwdcorrectness, "pwdcorrectind"); |
46 |
47 |
47 _LIT(KTypeunamepwddlg, "com.nokia.eap.usernamepassworddialog/1.0"); |
48 _LIT(KTypeunamepwddlg, "com.nokia.eap.usernamepassworddialog/1.0"); |
48 _LIT(KTypepwdquerydlg, "com.nokia.eap.passwordquerydialog/1.0"); |
49 _LIT(KTypepwdquerydlg, "com.nokia.eap.passwordquerydialog/1.0"); |
49 _LIT(KTypequerydlg, "com.nokia.eap.querydialog/1.0"); |
50 _LIT(KTypequerydlg, "com.nokia.eap.querydialog/1.0"); |
50 _LIT(KTypeinstallpacquerydlg, "com.nokia.eap.fastinstallpacquerydialog/1.0"); |
51 _LIT(KTypeinstallpacquerydlg, "com.nokia.eap.fastinstallpacquerydialog/1.0"); |
539 RDebug::Print(_L("CEapAuthNotifier::SetSelectedOldPassword")); |
540 RDebug::Print(_L("CEapAuthNotifier::SetSelectedOldPassword")); |
540 |
541 |
541 iEapInfo->iOldPassword = aPasswordInfo.iOldPassword; |
542 iEapInfo->iOldPassword = aPasswordInfo.iOldPassword; |
542 RDebug::Print(_L("CEapAuthNotifier::SetSelectedOldPassword: iEapInfo->iOldPassword = %S\n"), &iEapInfo->iOldPassword ); |
543 RDebug::Print(_L("CEapAuthNotifier::SetSelectedOldPassword: iEapInfo->iOldPassword = %S\n"), &iEapInfo->iOldPassword ); |
543 } |
544 } |
544 |
545 |
|
546 // --------------------------------------------------------------------------- |
|
547 // Check if password match |
|
548 // --------------------------------------------------------------------------- |
|
549 // |
|
550 TBool CEapAuthNotifier::CheckPasswordMatchingL ( TEapDialogInfo& aPasswordInfo ) |
|
551 { |
|
552 RDebug::Print(_L("CEapAuthNotifier::CheckPasswordMatchingL")); |
|
553 |
|
554 TBool match(EFalse); |
|
555 |
|
556 TRAPD(err, match = iClient.IsMasterKeyAndPasswordMatchingL(aPasswordInfo.iPassword)); |
|
557 |
|
558 RDebug::Print(_L("CEapAuthNotifier::CheckPasswordMatchingL: trap returned err = %d\n"), err ); |
|
559 |
|
560 return match; |
|
561 } |
|
562 |
|
563 // --------------------------------------------------------------------------- |
|
564 // Update device dialog parameters |
|
565 // --------------------------------------------------------------------------- |
|
566 // |
|
567 void CEapAuthNotifier::UpdateDialogL( TBool aIsPwdCorrect ) |
|
568 { |
|
569 RDebug::Print(_L("CEapAuthNotifier::UpdateDialogL: ENTERING")); |
|
570 |
|
571 TInt error; |
|
572 |
|
573 //The variant map is needed to update the dialog parameters |
|
574 CHbSymbianVariantMap* map = CHbSymbianVariantMap::NewL(); |
|
575 CleanupStack::PushL( map ); |
|
576 |
|
577 TBuf<KVariableLength> key(KPwdcorrectness); |
|
578 |
|
579 CHbSymbianVariant *variant = NULL; |
|
580 |
|
581 //Create the variant data information for the plugin |
|
582 variant = |
|
583 CHbSymbianVariant::NewL ( |
|
584 &aIsPwdCorrect, CHbSymbianVariant::EBool ); |
|
585 CleanupStack::PushL( variant ); |
|
586 error = map->Add( key, variant); |
|
587 User::LeaveIfError( error ); |
|
588 CleanupStack::Pop( variant ); // map's cleanup sequence handles variant. |
|
589 |
|
590 //Update the dialog. |
|
591 error = iDialog->Update( *map ); |
|
592 |
|
593 User::LeaveIfError( error ); |
|
594 CleanupStack::PopAndDestroy( map ); |
|
595 |
|
596 RDebug::Print(_L("CEapAuthNotifier::UpdateDialogL: LEAVING") ); |
|
597 |
|
598 } |
|
599 |
545 // --------------------------------------------------------------------------- |
600 // --------------------------------------------------------------------------- |
546 // The notifier is complete |
601 // The notifier is complete |
547 // --------------------------------------------------------------------------- |
602 // --------------------------------------------------------------------------- |
548 // |
603 // |
549 void CEapAuthNotifier::CompleteL( TInt aStatus ) |
604 void CEapAuthNotifier::CompleteL( TInt aStatus ) |