Author: ygrego Date: 2015-01-28 09:41:37 +0000 (Wed, 28 Jan 2015) New Revision: 733 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/733 Log: Moving of implementation of oipf objects into their respective directorie Added: oipf/js/impl/ApplicationManagerObject.js oipf/js/impl/CapabilitiesObject.js oipf/js/impl/ChannelConfig.js oipf/js/impl/Class.js oipf/js/impl/CodManagerObject.js oipf/js/impl/ConfigurationObject.js oipf/js/impl/DownloadManagerObject.js oipf/js/impl/DownloadTriggerObject.js oipf/js/impl/DrmAgentObject.js oipf/js/impl/GatewayInfoObject.js oipf/js/impl/IMSObject.js oipf/js/impl/MDTFObject.js oipf/js/impl/NotifSocketObject.js oipf/js/impl/ParentalControlManagerObject.js oipf/js/impl/RecordingSchedulerObject.js oipf/js/impl/RemoteControlFunctionObject.js oipf/js/impl/RemoteManagementObject.js oipf/js/impl/SearchManagerObject.js oipf/js/impl/VideoBroadcastObject.js oipf/js/impl/serverData.js Removed: oipf/js/ApplicationManagerObject.js oipf/js/CapabilitiesObject.js oipf/js/ChannelConfig.js oipf/js/Class.js oipf/js/CodManagerObject.js oipf/js/ConfigurationObject.js oipf/js/DownloadManagerObject.js oipf/js/DownloadTriggerObject.js oipf/js/DrmAgentObject.js oipf/js/GatewayInfoObject.js oipf/js/IMSObject.js oipf/js/MDTFObject.js oipf/js/NotifSocketObject.js oipf/js/ParentalControlManagerObject.js oipf/js/RecordingSchedulerObject.js oipf/js/RemoteControlFunctionObject.js oipf/js/RemoteManagementObject.js oipf/js/SearchManagerObject.js oipf/js/VideoBroadcastObject.js oipf/js/serverData.js Deleted: oipf/js/ApplicationManagerObject.js =================================================================== --- oipf/js/ApplicationManagerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/ApplicationManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,21 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; - -ApplicationManagerObject = Class.extend({ - - - -}) \ No newline at end of file Deleted: oipf/js/CapabilitiesObject.js =================================================================== --- oipf/js/CapabilitiesObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/CapabilitiesObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/ChannelConfig.js =================================================================== --- oipf/js/ChannelConfig.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/ChannelConfig.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/Class.js =================================================================== --- oipf/js/Class.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/Class.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/CodManagerObject.js =================================================================== --- oipf/js/CodManagerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/CodManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/ConfigurationObject.js =================================================================== --- oipf/js/ConfigurationObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/ConfigurationObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/DownloadManagerObject.js =================================================================== --- oipf/js/DownloadManagerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/DownloadManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/DownloadTriggerObject.js =================================================================== --- oipf/js/DownloadTriggerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/DownloadTriggerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/DrmAgentObject.js =================================================================== --- oipf/js/DrmAgentObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/DrmAgentObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/GatewayInfoObject.js =================================================================== --- oipf/js/GatewayInfoObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/GatewayInfoObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/IMSObject.js =================================================================== --- oipf/js/IMSObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/IMSObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/MDTFObject.js =================================================================== --- oipf/js/MDTFObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/MDTFObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/NotifSocketObject.js =================================================================== --- oipf/js/NotifSocketObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/NotifSocketObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/ParentalControlManagerObject.js =================================================================== --- oipf/js/ParentalControlManagerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/ParentalControlManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/RecordingSchedulerObject.js =================================================================== --- oipf/js/RecordingSchedulerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/RecordingSchedulerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/RemoteControlFunctionObject.js =================================================================== --- oipf/js/RemoteControlFunctionObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/RemoteControlFunctionObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/RemoteManagementObject.js =================================================================== --- oipf/js/RemoteManagementObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/RemoteManagementObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,15 +0,0 @@ -var Class = new Function(); - -Function.prototype.extend = function(proto) { - var parent = this; - - var child = function() { - this.init && this.init.apply(this, arguments); - }; - - child.prototype = proto; - child.prototype.__proto__ = parent.prototype; - child.prototype.super = parent.prototype; - - return child; -}; Deleted: oipf/js/SearchManagerObject.js =================================================================== --- oipf/js/SearchManagerObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/SearchManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,171 +0,0 @@ -var metadataSearchEvent = new Event('MetadataSearch'); //Could be change to put data into event -var metadataUpdateEvent = new Event('MetadataUpdate'); -/*// Listen for the event. -elem.addEventListener('build', function (e) { ... }, false); - -// Dispatch the event. -elem.dispatchEvent(event); -*/ - -var SearchManagerObject = Class.extend({ - - init : function (){ - - this.addEventListener("MetadataUpdate", onMetadataUpdate, false); - this.addEventListener("MetadataSearch", onMetadataSearch, false); - - }, - - /* - * - * - *\param Integer - *\param Integer - *\param Object - */ - onMetadataUpdate : function (action, info, object){ - - - }, - - /* - * - * - *\param MetadataSearch - *\param Integer - */ - onMetadataSearch : function (search, state){ - console.log("[INFO]: onMetadataSearch called", search); - - var message = ""; - - switch(state){ - - case 0 : - - console.log("RESULT FOUND :-) :-) :-) X-D"); - console.log(getCurrentChannelProgramName(search.result[0])); - break; - - case 3 : - - message = " MetadataSearch in Idle state because of either search abort or parameters have been modified \ - (query, constraints or search target)"; - break; - - case 4 : - - message = " The search cannot be complete because of lack of ressources or any other reason.\ - (memory insufficient to cache all of the requested results.)"; - break; - - default : - console.log("Unknow state :("); - } - }, - - /* - * - *\param Integer - *\return MetadataSearch - */ - createSearch : function(searchTarget){ - - - }, - - /* - * - * - * - *\return ChannelConfig - */ - getChannelConfig : function (){ - - } - -}) - -var MetadataSearch = Class.extend({ - - /* - * - *\type SearchResults - */ - result : null, - - /* - * - *\type Integer - * - */ - searchTarget : null, - - init : function(){ - - }, - - /* - ** - *\param Channel - *\param Integer - * - */ - findProgrammesFromStream : function (channel, startTime){ - console.log("[INFO]: findProgrammesFromStream [IN]"); - console.log(channel); - this.metaDataSearch.findProgrammesFromStream(channel, startTime); - console.log("[INFO]: findProgrammesFromStream [Out]"); - }, - -}) - -var SearchResults = Class.extend({ - - //Integer - lentgh : null, - - offset : null, - - totalSize : null, - - init : function(){ - - }, - - /* - * - *\param Integer - *\param Interger - * - *\return Boolean always to false - */ - getResults : function (offset, count){ - - - }, - - abort : function (){ - - }, - - /* - * - *\param Integer - * - *\return Object Instance of Programme, CODAsset, CODFolder , or CODService - */ - item : function (index){ - - } - -}) - - -var Query = Class.extend({ - - init : function(){ - - } - -}) \ No newline at end of file Deleted: oipf/js/VideoBroadcastObject.js =================================================================== --- oipf/js/VideoBroadcastObject.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/VideoBroadcastObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,163 +0,0 @@ -var VideoBroadcastObject = Class.extend({ - - //Default value - width : 200, - - //Default value - heigth : 200, - - playstate : 0, - - //Read only Stringcollection - playerCapabilities : null, - - // Read only Integer - allocationMethod : null, - - init : function(){ - console.log("[INFO] constructor of VideoBroadcast class called."); - }, - - /*! - * - *\param Channel channel - *\param Number errorState - * - */ - onChannelChangeError : function(channel, errorState ){ - - }, - - /*! - * - *\param Number channel - *\param Number errorState - * - */ - onPlayStateChange : function(state, error ){ - - }, - - /* - * - *\param Channel channel - * - */ - onChannelChangeSucceeded : function(channel ){ - - }, - - onFullScreenChange : function(){ - - }, - - onfocus : function(){ - - }, - - onblur : function(){ - - }, - - /* - * - *\retunr ChannelConfig retrieve configuration information on list * channels avialable - * - */ - getChannelConfig : function() { - - }, - - //Channel - bindToCurrentChannel : function() { - - }, - - /* - * - *\param Integer - *\param String - *\param Integer - * - *\return Channel - */ - createChannelObject : function(idType, dsd, sid ){ - - }, - - /* - * - *\param Integer - *\param Integer - *\param Integer - *\param Integer - *\param Integer - *\param String - * - *\return Channel - */ - createChannelObject : function(idType, onid, tsid, sid, sourceID, ipBroadcastID){ - - }, - - /* - * - *\param Channel - *\param Boolean - *\param String - * - * - */ - setChannel : function(channel, trickplay, - contentAccessDescriptorURL){ - - }, - - prevChannel : function() { - - - }, - - nextChannel : function() { - - - }, - - /* - * - *\param Boolean - * - */ - setFullScreen : function(fullscreen){ - - }, - - /* - * - *\param Integer Between 0 and 100 - *\return Boolean - */ - setVolume : function(volume) { - - }, - - /* - * - *return Integer - */ - getVolume : function() { - - - }, - - release : function() { - - - }, - - stop : function() { - - - } - -}) \ No newline at end of file Copied: oipf/js/impl/ApplicationManagerObject.js (from rev 732, oipf/js/ApplicationManagerObject.js) =================================================================== --- oipf/js/impl/ApplicationManagerObject.js (rev 0) +++ oipf/js/impl/ApplicationManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,21 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; + +ApplicationManagerObject = Class.extend({ + + + +}) \ No newline at end of file Copied: oipf/js/impl/CapabilitiesObject.js (from rev 732, oipf/js/CapabilitiesObject.js) =================================================================== --- oipf/js/impl/CapabilitiesObject.js (rev 0) +++ oipf/js/impl/CapabilitiesObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/ChannelConfig.js (from rev 732, oipf/js/ChannelConfig.js) =================================================================== --- oipf/js/impl/ChannelConfig.js (rev 0) +++ oipf/js/impl/ChannelConfig.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/Class.js (from rev 732, oipf/js/Class.js) =================================================================== --- oipf/js/impl/Class.js (rev 0) +++ oipf/js/impl/Class.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/CodManagerObject.js (from rev 732, oipf/js/CodManagerObject.js) =================================================================== --- oipf/js/impl/CodManagerObject.js (rev 0) +++ oipf/js/impl/CodManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/ConfigurationObject.js (from rev 732, oipf/js/ConfigurationObject.js) =================================================================== --- oipf/js/impl/ConfigurationObject.js (rev 0) +++ oipf/js/impl/ConfigurationObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/DownloadManagerObject.js (from rev 732, oipf/js/DownloadManagerObject.js) =================================================================== --- oipf/js/impl/DownloadManagerObject.js (rev 0) +++ oipf/js/impl/DownloadManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/DownloadTriggerObject.js (from rev 732, oipf/js/DownloadTriggerObject.js) =================================================================== --- oipf/js/impl/DownloadTriggerObject.js (rev 0) +++ oipf/js/impl/DownloadTriggerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/DrmAgentObject.js (from rev 732, oipf/js/DrmAgentObject.js) =================================================================== --- oipf/js/impl/DrmAgentObject.js (rev 0) +++ oipf/js/impl/DrmAgentObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/GatewayInfoObject.js (from rev 732, oipf/js/GatewayInfoObject.js) =================================================================== --- oipf/js/impl/GatewayInfoObject.js (rev 0) +++ oipf/js/impl/GatewayInfoObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/IMSObject.js (from rev 732, oipf/js/IMSObject.js) =================================================================== --- oipf/js/impl/IMSObject.js (rev 0) +++ oipf/js/impl/IMSObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/MDTFObject.js (from rev 732, oipf/js/MDTFObject.js) =================================================================== --- oipf/js/impl/MDTFObject.js (rev 0) +++ oipf/js/impl/MDTFObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/NotifSocketObject.js (from rev 732, oipf/js/NotifSocketObject.js) =================================================================== --- oipf/js/impl/NotifSocketObject.js (rev 0) +++ oipf/js/impl/NotifSocketObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/ParentalControlManagerObject.js (from rev 732, oipf/js/ParentalControlManagerObject.js) =================================================================== --- oipf/js/impl/ParentalControlManagerObject.js (rev 0) +++ oipf/js/impl/ParentalControlManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/RecordingSchedulerObject.js (from rev 732, oipf/js/RecordingSchedulerObject.js) =================================================================== --- oipf/js/impl/RecordingSchedulerObject.js (rev 0) +++ oipf/js/impl/RecordingSchedulerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/RemoteControlFunctionObject.js (from rev 732, oipf/js/RemoteControlFunctionObject.js) =================================================================== --- oipf/js/impl/RemoteControlFunctionObject.js (rev 0) +++ oipf/js/impl/RemoteControlFunctionObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/RemoteManagementObject.js (from rev 732, oipf/js/RemoteManagementObject.js) =================================================================== --- oipf/js/impl/RemoteManagementObject.js (rev 0) +++ oipf/js/impl/RemoteManagementObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,15 @@ +var Class = new Function(); + +Function.prototype.extend = function(proto) { + var parent = this; + + var child = function() { + this.init && this.init.apply(this, arguments); + }; + + child.prototype = proto; + child.prototype.__proto__ = parent.prototype; + child.prototype.super = parent.prototype; + + return child; +}; Copied: oipf/js/impl/SearchManagerObject.js (from rev 732, oipf/js/SearchManagerObject.js) =================================================================== --- oipf/js/impl/SearchManagerObject.js (rev 0) +++ oipf/js/impl/SearchManagerObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,171 @@ +var metadataSearchEvent = new Event('MetadataSearch'); //Could be change to put data into event +var metadataUpdateEvent = new Event('MetadataUpdate'); +/*// Listen for the event. +elem.addEventListener('build', function (e) { ... }, false); + +// Dispatch the event. +elem.dispatchEvent(event); +*/ + +var SearchManagerObject = Class.extend({ + + init : function (){ + + this.addEventListener("MetadataUpdate", onMetadataUpdate, false); + this.addEventListener("MetadataSearch", onMetadataSearch, false); + + }, + + /* + * + * + *\param Integer + *\param Integer + *\param Object + */ + onMetadataUpdate : function (action, info, object){ + + + }, + + /* + * + * + *\param MetadataSearch + *\param Integer + */ + onMetadataSearch : function (search, state){ + console.log("[INFO]: onMetadataSearch called", search); + + var message = ""; + + switch(state){ + + case 0 : + + console.log("RESULT FOUND :-) :-) :-) X-D"); + console.log(getCurrentChannelProgramName(search.result[0])); + break; + + case 3 : + + message = " MetadataSearch in Idle state because of either search abort or parameters have been modified \ + (query, constraints or search target)"; + break; + + case 4 : + + message = " The search cannot be complete because of lack of ressources or any other reason.\ + (memory insufficient to cache all of the requested results.)"; + break; + + default : + console.log("Unknow state :("); + } + }, + + /* + * + *\param Integer + *\return MetadataSearch + */ + createSearch : function(searchTarget){ + + + }, + + /* + * + * + * + *\return ChannelConfig + */ + getChannelConfig : function (){ + + } + +}) + +var MetadataSearch = Class.extend({ + + /* + * + *\type SearchResults + */ + result : null, + + /* + * + *\type Integer + * + */ + searchTarget : null, + + init : function(){ + + }, + + /* + ** + *\param Channel + *\param Integer + * + */ + findProgrammesFromStream : function (channel, startTime){ + console.log("[INFO]: findProgrammesFromStream [IN]"); + console.log(channel); + this.metaDataSearch.findProgrammesFromStream(channel, startTime); + console.log("[INFO]: findProgrammesFromStream [Out]"); + }, + +}) + +var SearchResults = Class.extend({ + + //Integer + lentgh : null, + + offset : null, + + totalSize : null, + + init : function(){ + + }, + + /* + * + *\param Integer + *\param Interger + * + *\return Boolean always to false + */ + getResults : function (offset, count){ + + + }, + + abort : function (){ + + }, + + /* + * + *\param Integer + * + *\return Object Instance of Programme, CODAsset, CODFolder , or CODService + */ + item : function (index){ + + } + +}) + + +var Query = Class.extend({ + + init : function(){ + + } + +}) \ No newline at end of file Copied: oipf/js/impl/VideoBroadcastObject.js (from rev 732, oipf/js/VideoBroadcastObject.js) =================================================================== --- oipf/js/impl/VideoBroadcastObject.js (rev 0) +++ oipf/js/impl/VideoBroadcastObject.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,163 @@ +var VideoBroadcastObject = Class.extend({ + + //Default value + width : 200, + + //Default value + heigth : 200, + + playstate : 0, + + //Read only Stringcollection + playerCapabilities : null, + + // Read only Integer + allocationMethod : null, + + init : function(){ + console.log("[INFO] constructor of VideoBroadcast class called."); + }, + + /*! + * + *\param Channel channel + *\param Number errorState + * + */ + onChannelChangeError : function(channel, errorState ){ + + }, + + /*! + * + *\param Number channel + *\param Number errorState + * + */ + onPlayStateChange : function(state, error ){ + + }, + + /* + * + *\param Channel channel + * + */ + onChannelChangeSucceeded : function(channel ){ + + }, + + onFullScreenChange : function(){ + + }, + + onfocus : function(){ + + }, + + onblur : function(){ + + }, + + /* + * + *\retunr ChannelConfig retrieve configuration information on list * channels avialable + * + */ + getChannelConfig : function() { + + }, + + //Channel + bindToCurrentChannel : function() { + + }, + + /* + * + *\param Integer + *\param String + *\param Integer + * + *\return Channel + */ + createChannelObject : function(idType, dsd, sid ){ + + }, + + /* + * + *\param Integer + *\param Integer + *\param Integer + *\param Integer + *\param Integer + *\param String + * + *\return Channel + */ + createChannelObject : function(idType, onid, tsid, sid, sourceID, ipBroadcastID){ + + }, + + /* + * + *\param Channel + *\param Boolean + *\param String + * + * + */ + setChannel : function(channel, trickplay, + contentAccessDescriptorURL){ + + }, + + prevChannel : function() { + + + }, + + nextChannel : function() { + + + }, + + /* + * + *\param Boolean + * + */ + setFullScreen : function(fullscreen){ + + }, + + /* + * + *\param Integer Between 0 and 100 + *\return Boolean + */ + setVolume : function(volume) { + + }, + + /* + * + *return Integer + */ + getVolume : function() { + + + }, + + release : function() { + + + }, + + stop : function() { + + + } + +}) \ No newline at end of file Copied: oipf/js/impl/serverData.js (from rev 732, oipf/js/serverData.js) =================================================================== --- oipf/js/impl/serverData.js (rev 0) +++ oipf/js/impl/serverData.js 2015-01-28 09:41:37 UTC (rev 733) @@ -0,0 +1,29 @@ +var express = require('express'); +var app = express(); + +app.get('/', function(req, res){ + //res.sendFile('/home/gyann/M2ALMA/Internship/codelutin/testOnTV/index2.html'); + // res.send(); + res.send('Hello'); + +}) +.get('/user/:id?', function userIdHandler(req, res) { + console.log("Route :"+req.route+" Param value :"+req.params.id); + + res.send('GET'); +}); + +app.listen(9720); + +console.log('Server running...'); + +var XmlTv = require('xmltv'); + +var xmltv = new XmlTv(); + +xmltv.on("programme", function(programme) { + //Do something with programmes one by one as they are parsed + console.log("programme start at:"+programme["start"]); +}); + +//xmltv.parseFile("../tvguide.xml"); \ No newline at end of file Deleted: oipf/js/serverData.js =================================================================== --- oipf/js/serverData.js 2015-01-28 09:37:39 UTC (rev 732) +++ oipf/js/serverData.js 2015-01-28 09:41:37 UTC (rev 733) @@ -1,29 +0,0 @@ -var express = require('express'); -var app = express(); - -app.get('/', function(req, res){ - //res.sendFile('/home/gyann/M2ALMA/Internship/codelutin/testOnTV/index2.html'); - // res.send(); - res.send('Hello'); - -}) -.get('/user/:id?', function userIdHandler(req, res) { - console.log("Route :"+req.route+" Param value :"+req.params.id); - - res.send('GET'); -}); - -app.listen(9720); - -console.log('Server running...'); - -var XmlTv = require('xmltv'); - -var xmltv = new XmlTv(); - -xmltv.on("programme", function(programme) { - //Do something with programmes one by one as they are parsed - console.log("programme start at:"+programme["start"]); -}); - -//xmltv.parseFile("../tvguide.xml"); \ No newline at end of file
participants (1)
-
ygregoï¼ users.nuiton.org