terminalsecurity/SCP/SCPTimestampPlugin/src/SCPTimestampPlugin.cpp
branchRCL_3
changeset 19 86979fe66c4c
parent 13 06f47423ecee
child 34 696f5dd11939
equal deleted inserted replaced
14:9e9792ae22e3 19:86979fe66c4c
   578             // Force password change                        
   578             // Force password change                        
   579             
   579             
   580             HBufC16* resText = NULL;
   580             HBufC16* resText = NULL;
   581             TRAPD( err, resText = LoadResourceL( R_SET_SEC_CODE_AGING ) );         
   581             TRAPD( err, resText = LoadResourceL( R_SET_SEC_CODE_AGING ) );         
   582             FormatResourceString(*resText);        
   582             FormatResourceString(*resText);        
   583             if (err == KErrNone) // If this fails, go on anyway to signal the psw change
   583             if ( err == KErrNone ) // If this fails, go on anyway to signal the psw change
   584                 {
   584                 {
   585                 TPtr16 bufDes = resText->Des();
   585     	        TPtr16 bufDes = resText->Des();
   586                 TRequestStatus userResponse;
   586                 
   587 
       
   588                 CAknGlobalNote* note = CAknGlobalNote::NewLC();
       
   589                 TRAP_IGNORE(
   587                 TRAP_IGNORE(
   590                         note->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY);
   588                     CAknGlobalNote* note = CAknGlobalNote::NewLC();
   591                         note->ShowNoteL(userResponse, EAknGlobalWarningNote,
   589     		        note->ShowNoteL( EAknGlobalWarningNote, bufDes );
   592                                 bufDes);
   590     		        CleanupStack::PopAndDestroy( note );
   593                 );
   591     		        );    	        
   594 
   592     	        
   595                 // Wait for the User Response
   593     	        // Wait here a while so the dialog won't appear on top of the note
   596                 User::WaitForRequest(userResponse);
   594                 User::After( KSCPNoteTimeout ); 
   597                 CleanupStack::PopAndDestroy(note);
   595                 
   598 
       
   599                 delete resText;
   596                 delete resText;
   600                 }
   597                 }
   601             
   598             
   602             // Refill the parameters to inform the client that the password
   599             // Refill the parameters to inform the client that the password
   603             // should be changed.
   600             // should be changed.