Author: ygrego Date: 2015-05-18 08:49:23 +0000 (Mon, 18 May 2015) New Revision: 1351 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1351 Log: -Addition of defaults properties "isPINEntryLocked" and "parentalRatingSchemes". -Addition of technicals properties "_currentPIN", "_invalidPINAttempts", "_currentInvalidPINAttempts" and "_PINLockedTime". -First implementation of class constructor. Modified: oipf/js/impl/ParentalControlManagerObject.js Modified: oipf/js/impl/ParentalControlManagerObject.js =================================================================== --- oipf/js/impl/ParentalControlManagerObject.js 2015-05-18 07:45:08 UTC (rev 1350) +++ oipf/js/impl/ParentalControlManagerObject.js 2015-05-18 08:49:23 UTC (rev 1351) @@ -1,7 +1,47 @@ var ParentalControlManagerObject = Class.extend({ + + /* + * Descrioption: + * A reference to the collection of rating schemes known by the OITF. + * + * Visibilty Type:readonly ParentalRatingSchemeCollection + */ + parentalRatingSchemes: null, + /* + * Description: + * The lockout status of the parental control PIN. If the incorrect PIN has + * been entered too many times in the configured timeout period, parental + * control PIN entry SHALL be locked out for a period of time determined by + * the OITF. + * + * Visibility Type: readonly Boolean + */ + isPINEntryLocked: null, + + //The parental control PIN set. + _currentPIN: null, + + //Indicate the number of invalid PIN attemps. + _invalidPINAttempts: null, + + //Contain the number of invalid entry PIN attempts. + _currentInvalidPINAttempts: null, + + //When the PIN entry attempt has been reached this PIN entry must be locked. + _PINLockedTime: null, + + /* + * FIXME: + * -Yannis 18/05/2015 The properties "_currentPIN" and "_invalidPINAttemps" + * don't have to be innitialized here. + */ init : function(){ - + this.isPINEntryLocked = false; + + this._currentPIN = "0000"; + this._invalidPINAttempts = 4; + this._currentPINAttempts = 0; } }); \ No newline at end of file