secsrv_plat/security_code_ui_api/inc/SecUiSecuritySettings.h
branchRCL_3
changeset 21 09b1ac925e3f
parent 0 164170e6151a
child 22 03674e5abf46
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
    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
    29 
    32 
    30 class CWait;
    33 class CWait;
    31 class CSecurityHandler;
    34 class CSecurityHandler;
    32 
    35 
    33 //  CLASS DEFINITIONS 
    36 //  CLASS DEFINITIONS 
   173 
   176 
   174         IMPORT_C TInt ChangeRemoteLockStatusL( TBool& aRemoteLockStatus, TDes& aRemoteLockCode, TInt aAutoLockPeriod );
   177         IMPORT_C TInt ChangeRemoteLockStatusL( TBool& aRemoteLockStatus, TDes& aRemoteLockCode, TInt aAutoLockPeriod );
   175         
   178         
   176         TInt RemoteLockCodeQueryL( TDes& aRemoteLockCode );
   179         TInt RemoteLockCodeQueryL( TDes& aRemoteLockCode );
   177         
   180         
       
   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 
   178     private:
   202     private:
   179     
   203     
   180         TInt RemoteLockSetLockSettingL( TBool aLockSetting );    
   204         TInt RemoteLockSetLockSettingL( TBool aLockSetting );    
   181         
   205         
   182 	private: // DATA	
   206 	private: // DATA