From 724cb5e3783311f6b8c808852dbe2de59f2399b0 Mon Sep 17 00:00:00 2001 From: Denis Loh Date: Mon, 25 Jan 2010 12:10:01 +0100 Subject: Fixed small bug which leads to an empty TV folder --- doc/html/classcUPnPResources.html | 289 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 doc/html/classcUPnPResources.html (limited to 'doc/html/classcUPnPResources.html') diff --git a/doc/html/classcUPnPResources.html b/doc/html/classcUPnPResources.html new file mode 100644 index 0000000..5e1be2a --- /dev/null +++ b/doc/html/classcUPnPResources.html @@ -0,0 +1,289 @@ + + +UPnP/DLNA plugin for VDR: cUPnPResources Class Reference + + + + + +
+

cUPnPResources Class Reference

#include <resources.h> +

+

+Collaboration diagram for cUPnPResources:
+
+

Collaboration graph
+ + +
[legend]
+ +

+List of all members. + + + + + + + + + + + + + + + + + +

Public Member Functions

int getResourcesOfObject (cUPnPClassObject *Object)
int loadResources ()
cUPnPResourcegetResource (unsigned int ResourceID)
int createFromChannel (cUPnPClassVideoBroadcast *Object, cChannel *Channel)
int createFromRecording (cUPnPClassVideoItem *Object, cRecording *Recording)
int createFromFile (cUPnPClassItem *Object, cString File)

Static Public Member Functions

static cUPnPResourcesgetInstance ()
+


Detailed Description

+The resource manager

+This manages the resources in an internal cache. It may create a new resource from a channel, a recording or a custom file.


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
int cUPnPResources::createFromChannel (cUPnPClassVideoBroadcast Object,
cChannel *  Channel 
)
+
+
+ +

+Create resource from channel

+This creates a new resource from the given channel. It determines what kind of video stream it is and further details if available. It stores the resource in the database after creating it.

+

Parameters:
+ + + +
Object the videoBroadcast item which holds the resource
Channel the VDR TV channel
+
+
Returns:
returns
    +
  • 0, if loading was successful
  • <0, otherwise
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int cUPnPResources::createFromFile (cUPnPClassItem Object,
cString  File 
)
+
+
+ +

+Create resource from file

+This creates a new resource from the given file. It determines all available information about the resource by analizing the content. It stores the resource in the database after creating it.

+

Parameters:
+ + + +
Object the item which holds the resource
File the file name
+
+
Returns:
returns
    +
  • 0, if loading was successful
  • <0, otherwise
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int cUPnPResources::createFromRecording (cUPnPClassVideoItem Object,
cRecording *  Recording 
)
+
+
+ +

+Create resource from recording

+This creates a new resource from the given recording. It determines what kind of video stream it is and further details if available. It stores the resource in the database after creating it.

+

Parameters:
+ + + +
Object the videoItem item which holds the resource
Recording the VDR TV recording
+
+
Returns:
returns
    +
  • 0, if loading was successful
  • <0, otherwise
+
+ +
+

+ +

+
+ + + + + + + + +
cUPnPResources * cUPnPResources::getInstance (  )  [static]
+
+
+ +

+Get the instance of the resource manager

+This returns the instance of the resource manager.

+

Returns:
the instance of the manager
+ +
+

+ +

+
+ + + + + + + + + +
cUPnPResource * cUPnPResources::getResource (unsigned int  ResourceID  ) 
+
+
+ +

+Get a resource by ID

+This returns a resource by its resource ID

+

Parameters:
+ + +
ResourceID the resource ID of the demanded resource
+
+
Returns:
the requested resource
+ +
+

+ +

+
+ + + + + + + + + +
int cUPnPResources::getResourcesOfObject (cUPnPClassObject Object  ) 
+
+
+ +

+Fill object with its resources

+This will load all the resources from the database, which are associated to the given object

+

Parameters:
+ + +
Object the object, which shall be filled
+
+
Returns:
returns
    +
  • 0, if loading was successful
  • <0, otherwise
+
+ +
+

+ +

+
+ + + + + + + + +
int cUPnPResources::loadResources (  ) 
+
+
+ +

+Loads all resources from database

+This loads all resources from the database into the internal cache.

+

Returns:
returns
    +
  • 0, if loading was successful
  • <0, otherwise
+
+ +
+

+


The documentation for this class was generated from the following files: +
+
Generated on Sun Nov 8 15:44:09 2009 for UPnP/DLNA plugin for VDR by  + +doxygen 1.5.8
+ + -- cgit v1.2.3