Author: ygrego Date: 2015-05-18 15:50:11 +0000 (Mon, 18 May 2015) New Revision: 1378 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1378 Log: Addition of method "unlockWithParentalControlPIN". Modified: oipf/js/impl/ParentalControlManagerObject.js Modified: oipf/js/impl/ParentalControlManagerObject.js =================================================================== --- oipf/js/impl/ParentalControlManagerObject.js 2015-05-18 14:45:55 UTC (rev 1377) +++ oipf/js/impl/ParentalControlManagerObject.js 2015-05-18 15:50:11 UTC (rev 1378) @@ -160,6 +160,45 @@ }, + /* + * Description: + * Unlock the object specified by target for viewing if pcPIN contains the + * correct parental control PIN. + * + * The object type of target can be one of the following: + * -video/broadcast object, in which case the content being + * presented through this object SHALL be unlocked until a new channel is + * selected. + * -A/V Control object, in which case the content being presented + * through this object. SHALL be unlocked until a new item of content is + * played using this object. + * + * Otherwise an Invalid Object error SHALL be returned. + * + * The return value indicates the success of the operation, and + * SHALL take the following values: + * + * ------------------------------------------------------------------------ + * Value | Description + * ------ ----------------------------------------------------------------- + * 0 | The PIN is correct. + * ------ ----------------------------------------------------------------- + * 1 | The PIN is incorrect. + * ------ ----------------------------------------------------------------- + * 2 | PIN entry is locked because an invalid PIN has been entered too + * | many times. The number of invalid PIN attempts before PIN entry + * | is locked is outside the scope of this specification. + * ------ ----------------------------------------------------------------- + * + * Arguments: + * - pcPIN: The parental control PIN. + * + * - target: The object to be unlocked. + */ + unlockWithParentalControlPIN: function(pcPIN, target) { + + }, + verifyParentalControlPIN: function(pcPIN) { if (this._currentPIN == pcPIN) { return this._PIN_CORRECT;