Author: ygrego Date: 2015-01-28 09:37:39 +0000 (Wed, 28 Jan 2015) New Revision: 732 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/732 Log: Moving of files oipf_lib and test into their respective directorie Added: oipf/js/lib/oipf_lib.js oipf/js/test/test.js Removed: oipf/js/oipf_lib.js oipf/js/test.js Copied: oipf/js/lib/oipf_lib.js (from rev 731, oipf/js/oipf_lib.js) =================================================================== --- oipf/js/lib/oipf_lib.js (rev 0) +++ oipf/js/lib/oipf_lib.js 2015-01-28 09:37:39 UTC (rev 732) @@ -0,0 +1,198 @@ +var video_broadcast_dae_mime_type = "video/broadcast"; + +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; +}; + +/*! + * \class OipfObjectFactory + * \brief Provide access to components of a terminal supporting OIFP specification. + */ +var OipfObjectFactory = Class.extend({ + + + + init : function(listObjects) { + console.log("[INFO] constructor of OipfObjectFactory class called."); + this.listObjects = listObjects; + }, + + listObjects : null, + + /*! + * \class + * \brief + */ + isObjectSupported : function(mimeType) { + + }, + + /*! + * \method + * \brief + * \return + */ + createVideoBroadcastObject : function() { + console.log("[INFO] createVideoBroadcastObject() of OipfObjectFactory class called."); + return this.listObjects[video_broadcast_dae_mime_type]; + }, + + /*! + * \class + * \brief + */ + createSearchManagerObject : function() { + + + + }, + + /*! + * \class + * \brief + */ + createApplicationManagerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createCapabilitiesObject : function() { + + }, + + /*! + * \class + * \brief + */ + createChannelConfig : function() { + + }, + + /*! + * \class + * \brief + */ + createCodManagerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createConfigurationObject : function() { + + }, + + /*! + * \class + * \brief + */ + createDownloadManagerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createDownloadTriggerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createDrmAgentObject : function() { + + }, + + /*! + * \class + * \brief + */ + createGatewayInfoObject : function() { + + }, + + /*! + * \class + * \brief + */ + createIMSObject : function() { + + }, + + /*! + * \class + * \brief + */ + createMDTFObject : function() { + + }, + + /*! + * \class + * \brief + */ + createNotifSocketObject : function() { + + }, + + /*! + * \class + * \brief + */ + createParentalControlManagerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createRecordingSchedulerObject : function() { + + }, + + /*! + * \class + * \brief + */ + createRemoteControlFunctionObject : function(){ + + }, + + /*! + * \class + * \brief + */ + createRemoteManagementObject : function(){ + + }, + + /*! + * \method + * \brief + * \return + */ + createSearchManagerObject : function() { + + } +}) \ No newline at end of file Deleted: oipf/js/oipf_lib.js =================================================================== --- oipf/js/oipf_lib.js 2015-01-28 09:30:45 UTC (rev 731) +++ oipf/js/oipf_lib.js 2015-01-28 09:37:39 UTC (rev 732) @@ -1,198 +0,0 @@ -var video_broadcast_dae_mime_type = "video/broadcast"; - -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; -}; - -/*! - * \class OipfObjectFactory - * \brief Provide access to components of a terminal supporting OIFP specification. - */ -var OipfObjectFactory = Class.extend({ - - - - init : function(listObjects) { - console.log("[INFO] constructor of OipfObjectFactory class called."); - this.listObjects = listObjects; - }, - - listObjects : null, - - /*! - * \class - * \brief - */ - isObjectSupported : function(mimeType) { - - }, - - /*! - * \method - * \brief - * \return - */ - createVideoBroadcastObject : function() { - console.log("[INFO] createVideoBroadcastObject() of OipfObjectFactory class called."); - return this.listObjects[video_broadcast_dae_mime_type]; - }, - - /*! - * \class - * \brief - */ - createSearchManagerObject : function() { - - - - }, - - /*! - * \class - * \brief - */ - createApplicationManagerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createCapabilitiesObject : function() { - - }, - - /*! - * \class - * \brief - */ - createChannelConfig : function() { - - }, - - /*! - * \class - * \brief - */ - createCodManagerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createConfigurationObject : function() { - - }, - - /*! - * \class - * \brief - */ - createDownloadManagerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createDownloadTriggerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createDrmAgentObject : function() { - - }, - - /*! - * \class - * \brief - */ - createGatewayInfoObject : function() { - - }, - - /*! - * \class - * \brief - */ - createIMSObject : function() { - - }, - - /*! - * \class - * \brief - */ - createMDTFObject : function() { - - }, - - /*! - * \class - * \brief - */ - createNotifSocketObject : function() { - - }, - - /*! - * \class - * \brief - */ - createParentalControlManagerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createRecordingSchedulerObject : function() { - - }, - - /*! - * \class - * \brief - */ - createRemoteControlFunctionObject : function(){ - - }, - - /*! - * \class - * \brief - */ - createRemoteManagementObject : function(){ - - }, - - /*! - * \method - * \brief - * \return - */ - createSearchManagerObject : function() { - - } -}) \ No newline at end of file Copied: oipf/js/test/test.js (from rev 729, oipf/js/test.js) =================================================================== --- oipf/js/test/test.js (rev 0) +++ oipf/js/test/test.js 2015-01-28 09:37:39 UTC (rev 732) @@ -0,0 +1,6 @@ +function testCreatingVidBroadOject(){ + console.log("[TEST-RUNNING][Info]Creating of video/brodacast oipf object."); + var videoBroadcastObject=oipfObjectFactory.createVideoBroadcastObject(); + console.assert(videoBroadcastObject!=null,"The object video/broadcast is null."); + console.log("[TEST-RUNNING][Result] Creating of video/brodacast oipf object [SUCESSFULL]."); +} \ No newline at end of file Deleted: oipf/js/test.js =================================================================== --- oipf/js/test.js 2015-01-28 09:30:45 UTC (rev 731) +++ oipf/js/test.js 2015-01-28 09:37:39 UTC (rev 732) @@ -1,6 +0,0 @@ -function testCreatingVidBroadOject(){ - console.log("[TEST-RUNNING][Info]Creating of video/brodacast oipf object."); - var videoBroadcastObject=oipfObjectFactory.createVideoBroadcastObject(); - console.assert(videoBroadcastObject!=null,"The object video/broadcast is null."); - console.log("[TEST-RUNNING][Result] Creating of video/brodacast oipf object [SUCESSFULL]."); -} \ No newline at end of file