cpsecplugins/simpincodeplugin/src/seccodemodel_symbian.cpp
changeset 30 cc1cea6aabaf
parent 19 098e361762d2
equal deleted inserted replaced
26:aad866c37519 30:cc1cea6aabaf
    21 #include <etelmm.h>
    21 #include <etelmm.h>
    22 
    22 
    23 // User includes
    23 // User includes
    24 #include "seccodemodel_p.h"
    24 #include "seccodemodel_p.h"
    25 #include "seccodeuiglobal.h"
    25 #include "seccodeuiglobal.h"
       
    26 #include <../../inc/cpsecplugins.h>
    26 
    27 
    27 // ======== MEMBER FUNCTIONS ========
    28 // ======== MEMBER FUNCTIONS ========
    28 
    29 
    29 /*!
    30 /*!
    30     NewL
    31     NewL
    48 /*!
    49 /*!
    49     ConstructL
    50     ConstructL
    50 */
    51 */
    51 void SecCodeModelPrivate::ConstructL()
    52 void SecCodeModelPrivate::ConstructL()
    52 {
    53 {
       
    54 	RDEBUG("0", 0);
    53 	iSecurity = CSecuritySettings::NewL(); 
    55 	iSecurity = CSecuritySettings::NewL(); 
    54 }
    56 }
    55 
    57 
    56 /*!
    58 /*!
    57     Destructor
    59     Destructor
    66 /*!
    68 /*!
    67     Get Pin Code Request State
    69     Get Pin Code Request State
    68 */
    70 */
    69 bool SecCodeModelPrivate::pinCodeRequest() const
    71 bool SecCodeModelPrivate::pinCodeRequest() const
    70 {
    72 {
       
    73 	RDEBUG("0", 0);
    71 	bool isLockEnabled = false;
    74 	bool isLockEnabled = false;
    72 	QT_TRAP_THROWING(isLockEnabled = iSecurity->IsLockEnabledL(
    75 	QT_TRAP_THROWING(isLockEnabled = iSecurity->IsLockEnabledL(
    73 		RMobilePhone::ELockICC));
    76 		RMobilePhone::ELockICC));
       
    77 	RDEBUG("isLockEnabled", isLockEnabled);
    74 	return isLockEnabled;
    78 	return isLockEnabled;
    75 }
    79 }
    76 
    80 
    77 /*!
    81 /*!
    78     Get the Change Pin Remaining Attempts
    82     Get the Change Pin Remaining Attempts
    79 */
    83 */
    80 bool SecCodeModelPrivate::changePinCodeRequest()
    84 bool SecCodeModelPrivate::changePinCodeRequest()
    81 {
    85 {
       
    86 	RDEBUG("0", 0);
    82     bool result = false;
    87     bool result = false;
    83 	QT_TRAP_THROWING(result =iSecurity->ChangePinRequestL());
    88 	QT_TRAP_THROWING(result =iSecurity->ChangePinRequestL());
       
    89 	RDEBUG("result", result);
    84 	return result;
    90 	return result;
    85 }
    91 }
    86 
    92 
    87 /*!
    93 /*!
    88     Change Pin Code
    94     Change Pin Code
    89 */
    95 */
    90 int SecCodeModelPrivate::changePinCode()
    96 int SecCodeModelPrivate::changePinCode()
    91 {
    97 {
       
    98 	RDEBUG("0", 0);
    92 	QT_TRAP_THROWING(iSecurity->ChangePinL());
    99 	QT_TRAP_THROWING(iSecurity->ChangePinL());
       
   100 	RDEBUG("0", 0);
    93 	return 0;
   101 	return 0;
    94 }
   102 }
    95 
   103 
    96 /*!
   104 /*!
    97     Change Pin2 Code
   105     Change Pin2 Code
    98 */
   106 */
    99 int SecCodeModelPrivate::changePin2Code()
   107 int SecCodeModelPrivate::changePin2Code()
   100 {
   108 {
       
   109 	RDEBUG("0", 0);
   101 	QT_TRAP_THROWING(iSecurity->ChangePin2L());
   110 	QT_TRAP_THROWING(iSecurity->ChangePin2L());
       
   111 	RDEBUG("0", 0);
   102 	return 0;
   112 	return 0;
   103 }
   113 }