secsrv_plat/security_code_ui_api/inc/SecUiSecuritySettings.h
branchRCL_3
changeset 50 03674e5abf46
parent 49 09b1ac925e3f
equal deleted inserted replaced
49:09b1ac925e3f 50:03674e5abf46
    24 //  INCLUDES
    24 //  INCLUDES
    25 #include <etelmm.h>
    25 #include <etelmm.h>
    26 #include <rmmcustomapi.h>
    26 #include <rmmcustomapi.h>
    27 #include <aknnotedialog.h>
    27 #include <aknnotedialog.h>
    28 
    28 
    29 #define KSecUiAskNever 1
       
    30 #define KSecUiAskOnlyIfInvalid 2
       
    31 #define KSecUiAskAlways 3
       
    32 
    29 
    33 class CWait;
    30 class CWait;
    34 class CSecurityHandler;
    31 class CSecurityHandler;
    35 
    32 
    36 //  CLASS DEFINITIONS 
    33 //  CLASS DEFINITIONS 
   176 
   173 
   177         IMPORT_C TInt ChangeRemoteLockStatusL( TBool& aRemoteLockStatus, TDes& aRemoteLockCode, TInt aAutoLockPeriod );
   174         IMPORT_C TInt ChangeRemoteLockStatusL( TBool& aRemoteLockStatus, TDes& aRemoteLockCode, TInt aAutoLockPeriod );
   178         
   175         
   179         TInt RemoteLockCodeQueryL( TDes& aRemoteLockCode );
   176         TInt RemoteLockCodeQueryL( TDes& aRemoteLockCode );
   180         
   177         
   181 		/** 
       
   182 		* Same functions, taking parameters. This is used in QT because the Settings handles it.
       
   183 		*
       
   184 		* @param aOldPassword RMobilePhone::TMobilePassword  : current password, probably asked to the user by other means
       
   185 		* @param aNewPassword RMobilePhone::TMobilePassword  : current password, probably asked to the user by other means
       
   186 		* @param aFlags	 			TInt  : when to ask for the password
       
   187 		* @param aCaption			TDes& : caption to show in the dialog. If NULL, then the function will calculate it. If empty, it will be empty
       
   188 		* @param aShowError		TInt  : in case of error, it will show it. If this is not set, then no errors will be displayed.
       
   189 		* @return TInt: KErrNone (succesful) , KErrGsm0707IncorrectPassword, KErrAccessDenied, KErrGsmSSPasswordAttemptsViolation, KErrLocked, KErrGsm0707OperationNotAllowed, KErrAbort, KErrNotSupported, ...
       
   190 		*/
       
   191 		IMPORT_C TInt  ChangePinParamsL(RMobilePhone::TMobilePassword aOldPassword, RMobilePhone::TMobilePassword aNewPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   192 		IMPORT_C TInt  ChangeUPinParamsL(RMobilePhone::TMobilePassword aOldPassword, RMobilePhone::TMobilePassword aNewPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   193 		IMPORT_C TInt  ChangePin2ParamsL(RMobilePhone::TMobilePassword aOldPassword, RMobilePhone::TMobilePassword aNewPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   194 		IMPORT_C TInt  ChangeSecCodeParamsL(RMobilePhone::TMobilePassword aOldPassword, RMobilePhone::TMobilePassword aNewPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   195 		IMPORT_C TInt  ChangeAutoLockPeriodParamsL(TInt aPeriod, RMobilePhone::TMobilePassword aOldPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   196 		/* if aOldPassword is used, then try to verify.
       
   197 		KSecUiAskNever, KSecUiAskOnlyIfInvalid, KSecUiAskAlways
       
   198 		*/
       
   199 		IMPORT_C TInt  AskSecCodeParamsL(RMobilePhone::TMobilePassword &aOldPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   200 		IMPORT_C TInt  ChangePinRequestParamsL(TInt aEnable, RMobilePhone::TMobilePassword aOldPassword, TInt aFlags, TDes& aCaption, TInt aShowError);
       
   201 
       
   202     private:
   178     private:
   203     
   179     
   204         TInt RemoteLockSetLockSettingL( TBool aLockSetting );    
   180         TInt RemoteLockSetLockSettingL( TBool aLockSetting );    
   205         
   181         
   206 	private: // DATA	
   182 	private: // DATA