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 |