terminalsecurity/SCP/SCPTimestampPlugin/src/SCPUserInf.cpp
branchRCL_3
changeset 13 86979fe66c4c
parent 11 06f47423ecee
child 23 4af31167ea77
equal deleted inserted replaced
12:9e9792ae22e3 13:86979fe66c4c
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include "SCPUserInf.h"
    18 #include "SCPUserInf.h"
    19 #include <SCPTimestampPluginLang.rsg>
    19 #include <SCPTimestampPluginLang.rsg>
    20 #include <AknGlobalConfirmationQuery.h>
    20 
    21 //#include <AknNoteDialog.h>
    21 #include <AknGlobalNote.h>
    22 #include <aknglobalnote.h> 
    22 #include <aknnotewrappers.h>
    23 #include "SCPDebug.h"
    23 #include "SCPDebug.h"
    24 
    24 
    25 #include <hal.h>
    25 #include <hal.h>
    26 // For wipe
    26 // For wipe
    27 #include <StarterClient.h>
    27 #include <starterclient.h>
    28 #include <SysLangUtil.h>
    28 #include <syslangutil.h>
    29 #include <rfsClient.h>
    29 #include <rfsClient.h>
    30 #include "DMUtilClient.h"
    30 #include "DMUtilClient.h"
    31 CSCPUserInf::CSCPUserInf() :
    31 CSCPUserInf::CSCPUserInf() :
    32     CActive(EPriorityStandard) // Standard priority
    32     CActive(EPriorityStandard) // Standard priority
    33     {
    33     {
    98     Dprint( (_L("CSCPUserInf::RunL()") ));
    98     Dprint( (_L("CSCPUserInf::RunL()") ));
    99 	if (iState == EGlobalConf)
    99 	if (iState == EGlobalConf)
   100 	{
   100 	{
   101 	Dprint( (_L("CSCPUserInf::EGlobalConf") ));
   101 	Dprint( (_L("CSCPUserInf::EGlobalConf") ));
   102     TRAP_IGNORE(                                            
   102     TRAP_IGNORE(                                            
   103 		    CAknGlobalConfirmationQuery* note = CAknGlobalConfirmationQuery::NewLC();
   103 		TRequestStatus status;
   104 		    TPtr16 bufDes = idispText->Des();                    
   104 		    TPtr16 bufDes = idispText->Des();                    
   105 		    TRequestStatus status;
   105 		CAknGlobalNote* lInfoNote = CAknGlobalNote :: NewLC();
   106 		    note->ShowConfirmationQueryL(status,
   106 		lInfoNote->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY__OK);
   107 		                                 bufDes,
   107 		lInfoNote->SetAnimation(R_QGN_NOTE_WARNING_ANIM);
   108 		                                 R_AVKON_SOFTKEYS_OK_EMPTY,
   108 		lInfoNote->ShowNoteL(status, EAknGlobalInformationNote, bufDes);
   109 		                                 R_QGN_NOTE_WARNING_ANIM );
   109 		lInfoNote->SetPriority(ECoeWinPriorityAlwaysAtFront + 1);
   110 			Dprint( (_L("CSCPUserInf::WaitforReq") ));
       
   111 		    User::WaitForRequest( status );
   110 		    User::WaitForRequest( status );
   112 			Dprint( (_L("CSCPUserInf::WaitforReq done") ));                            
   111 		CleanupStack::PopAndDestroy(1); // note
   113 		    CleanupStack::PopAndDestroy( note );     
       
   114 			);
   112 			);
   115 	}
   113 	}
   116 	else if (iState == ERfs)
   114 	else if (iState == ERfs)
   117 	{
   115 	{
   118 	Dprint( (_L("CSCPUserInf::ERfs") ));
   116 	Dprint( (_L("CSCPUserInf::ERfs") ));