587 // Force password change |
587 // Force password change |
588 |
588 |
589 HBufC16* resText = NULL; |
589 HBufC16* resText = NULL; |
590 TRAPD( err, resText = LoadResourceL( R_SET_SEC_CODE_AGING ) ); |
590 TRAPD( err, resText = LoadResourceL( R_SET_SEC_CODE_AGING ) ); |
591 FormatResourceString(*resText); |
591 FormatResourceString(*resText); |
592 if ( err == KErrNone ) // If this fails, go on anyway to signal the psw change |
592 if (err == KErrNone) // If this fails, go on anyway to signal the psw change |
593 { |
593 { |
594 TPtr16 bufDes = resText->Des(); |
594 TPtr16 bufDes = resText->Des(); |
595 |
595 TRequestStatus userResponse; |
|
596 |
|
597 CAknGlobalNote* note = CAknGlobalNote::NewLC(); |
596 TRAP_IGNORE( |
598 TRAP_IGNORE( |
597 CAknGlobalNote* note = CAknGlobalNote::NewLC(); |
599 note->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY); |
598 note->ShowNoteL( EAknGlobalWarningNote, bufDes ); |
600 note->ShowNoteL(userResponse, EAknGlobalWarningNote, |
599 CleanupStack::PopAndDestroy( note ); |
601 bufDes); |
600 ); |
602 ); |
601 |
603 |
602 // Wait here a while so the dialog won't appear on top of the note |
604 // Wait for the User Response |
603 User::After( KSCPNoteTimeout ); |
605 User::WaitForRequest(userResponse); |
604 |
606 CleanupStack::PopAndDestroy(note); |
|
607 |
605 delete resText; |
608 delete resText; |
606 } |
609 } |
607 |
610 |
608 // Refill the parameters to inform the client that the password |
611 // Refill the parameters to inform the client that the password |
609 // should be changed. |
612 // should be changed. |