Author: ygrego Date: 2015-02-03 16:20:28 +0000 (Tue, 03 Feb 2015) New Revision: 761 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/761 Log: Adding of class 'Configuration' into 'init.js', 'Collection.js' in 'welcome.js' and readjustment of document for properties into 'ConfigurationObject.js'. Modified: oipf/js/impl/ConfigurationObject.js oipf/js/initObj/init.js oipf/view/welcome.html Modified: oipf/js/impl/ConfigurationObject.js =================================================================== --- oipf/js/impl/ConfigurationObject.js 2015-02-03 14:53:12 UTC (rev 760) +++ oipf/js/impl/ConfigurationObject.js 2015-02-03 16:20:28 UTC (rev 761) @@ -9,7 +9,7 @@ * Description: * Accesses the configuration object that sets defaults and shows system settings. * - * Visibilité Type: readonly Configuration + * Visibility Type: readonly Configuration */ configuration: null, @@ -17,7 +17,7 @@ * Description: * Accesses the object representing the platform hardware. * - * Visibilité Type: readonly LocalSystem + * Visibility Type: readonly LocalSystem */ localSystem: null, Modified: oipf/js/initObj/init.js =================================================================== --- oipf/js/initObj/init.js 2015-02-03 14:53:12 UTC (rev 760) +++ oipf/js/initObj/init.js 2015-02-03 16:20:28 UTC (rev 761) @@ -14,8 +14,8 @@ var TunerCollection = Collection.extend({ init : function(elements) { - - super.init(elements); + + this.super.init(elements); } }); @@ -204,5 +204,175 @@ }); +var Configuration = Class.extend({ + + /* + * Description: + * A comma-separated set of languages to be used for audio playback, in order of preference. Each language SHALL be indicated by its ISO 639-2 language code as * defined in [ISO 639-2]. + * + * Type: String + */ + preferredAudioLanguage: null, + + /* + * Description: + * A comma-separated set of languages to be used for subtitle playback, in order of preference. The subtitle + * component (see section 7.16.5.5) that matches the highest ordered language SHALL be activated + * (equivelant to the selectComponent method) and all other subtitle components SHALL be deactivated + * (equivelant to the unselectComponent method). + * Each language SHALL be indicated by its ISO 639-2 language code as defined in [ISO 639-2] or as a + * wildcard specifier " *** ". + * If the wildcard is included it SHALL be the last item in the set. If no subtitle component in the content + * matches a language in this property and the wildcard is included then the first (lowest) subtitle component + * SHALL be selected. + * + * Type: String + */ + preferredSubtitleLanguage: null, + + /* + * Description: + * A comma-separated set of languages to be used for the user interface of a service, in order of preference. + * Each language SHALL be indicated by its ISO 639-2 language code as defined in [ISO 639-2]. + * If present, the HTTP Accept-language header shall contain the same languages as the + * preferredUILanguage property with the same order of preference. NOTE: The order of preference in the + * Accept-language header is indicated using the quality factor. + * + * Type: String + */ + preferredUILanguage: null, + + /* + * Description: + * An ISO-3166 three character country code identifying the country in which the receiver is deployed. + * + * Type: String + */ + countryId: null, + + /* + * Description: + * An integer indicating the time zone within a country in which the receiver is deployed. A value of 0 SHALL + * represent the eastern-most time zone in the country, a value of 1 SHALL represent the next time zone to + * the west, and so on. Valid values are in the range 0 – 60. + * + * Type: Integer + */ + regionId: null, + + /* + * Description: + * The policy dictates what mechanism the system should use when storage space is exceeded. + * Valid values are shown in the table below. + * ------------------------------------------------------------------------------------------------ + * Value | Description + * ------ ----------------------------------------------------------------------------------------- + * 0 | Indicates a recording management policy where no recordings are to be deleted. + * ------ ----------------------------------------------------------------------------------------- + * 1 | Indicates a recording management policy where only watched recordings MAY be deleted. + * ------ ----------------------------------------------------------------------------------------- + * 2 | Indicates a recording management policy where only recordings older than the specified + * | threshold (given by the pvrSaveDays and pvrSaveEpisodes properties) MAY be deleted. + * ------------------------------------------------------------------------------------------------ + * + * Type: Integer + */ + pvrPolicy: null, + + + /* + * Description: + * When the pvrPolicy property is set to the value 2, this property indicates the minimum number of + * episodes that SHALL be saved for series-link recordings. + * + * Type: Integer + */ + pvrSaveEpisodes: null, + + + /* + * Description: + * When the pvrPolicy property is set to the value 2, this property indicates the minimum save time (in + * days) for individual recordings. Only recordings older than the save time MAY be deleted. + * + * Type: Integer + */ + pvrSaveDays: null, + + + /* + * Description: + * The default padding (measured in seconds) to be added at the start of a recording. + * + * Type: Integer + */ + pvrStartPadding: null, + + /* + * Description: + * The default padding (measured in seconds) to be added at the end of a recording. + * + * Type: Integer + */ + pvrEndPadding: null, + + + /* + * Description: + * The time shift mode indicates the preferred mode of operation for support of timeshift playback in the + * video/broadcast object. Valid values are defined in the timeShiftMode property in section 7.13.2.2. The + * default value is 0, timeshift is turned off. + * + * Type: Integer + */ + preferredTimeShiftMode: null, + + init: function() { + + }, + + /* + * Description: + * Get the system text string that has been set for the specified key. + * + * Argument: + * -key: A key identifying the system text string to be retrieved. + * + * Return: String + */ + getText: function(key) { + + + }, + + /* + * Description: + * Set the system text string that has been set for the specified key. System text strings are + * used for automatically-generated messages in certain cases, e.g. parental control messages. + * + * Arguments: + * -key: The key for the text string to be set. Valid keys are: + * ----------------------------------------------------------------------------------------------------------------------------------------------------- + * Key | Description + * ------------------ ---------------------------------------------------------------------------------------------------------------------------------- + * no_title | Text string used as the title for programmes and channels where no guide information is available. Defaults to “No information” + * ------------------ ---------------------------------------------------------------------------------------------------------------------------------- + * no_synopsis | Text string used as the synopsis for programmes where no guide information is available. Defaults to “No further information + | available” + * ------------------ ---------------------------------------------------------------------------------------------------------------------------------- + * manual_recording | Text string used to identify a manual recording. Defaults to “Manual Recording” + * ----------------------------------------------------------------------------------------------------------------------------------------------------- + * + * -value: The new value for the system text string. + * + */ + setText: function(key, value) { + + + } + + +}); + var oipfObjectFactory = new OipfObjectFactory(); var metadata = data; \ No newline at end of file Modified: oipf/view/welcome.html =================================================================== --- oipf/view/welcome.html 2015-02-03 14:53:12 UTC (rev 760) +++ oipf/view/welcome.html 2015-02-03 16:20:28 UTC (rev 761) @@ -3,6 +3,7 @@ <title>TestOIPFLib</title> <link rel="stylesheet" type="text/css" href="css/style.css"/> <script src="../js/lib/Class.js" type="text/javascript"></script> + <script src="../js/lib/Collection.js" type="text/javascript"></script> <script src="../data/data.js" type="text/javascript"></script> <script src="../js/impl/OipfObjectFactory.js" type="text/javascript"></script> <script src="../js/impl/ChannelConfig.js" type="text/javascript"></script>