cUPnPResource Class Reference

#include <object.h>

Collaboration diagram for cUPnPResource:

Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned int getID () const
const char * getResource () const
const char * getDuration () const
const char * getResolution () const
const char * getProtocolInfo () const
const char * getContentType () const
const char * getImportURI () const
int getResourceType () const
unsigned long getSize () const
off64_t getFileSize () const
time_t getLastModification () const
unsigned int getBitrate () const
unsigned int getSampleFrequency () const
unsigned int getBitsPerSample () const
unsigned int getNrAudioChannels () const
unsigned int getColorDepth () const

Friends

class cUPnPResourceMediator
class cUPnPResources
class cAudioVideoDetector


Detailed Description

UPnP Resource

This contains all details about a resource


Member Function Documentation

unsigned int cUPnPResource::getBitrate (  )  const [inline]

Get the bitrate

This returns the bitrate of the resource in bits per second.

Returns:
the bitrate of the resource

unsigned int cUPnPResource::getBitsPerSample (  )  const [inline]

Get the bits per sample

Returns the number of bits per sample.

Returns:
the bits per sample of the resource

unsigned int cUPnPResource::getColorDepth (  )  const [inline]

Get the color depth

Returns the color depth of the resource in pits per pixel

Returns:
the color depth of the resource

const char* cUPnPResource::getContentType (  )  const [inline]

Get the content type

Returns the mime type of the content of the resource

Returns:
the content type of the resource

const char* cUPnPResource::getDuration (  )  const [inline]

Get the duration

Returns a date time string with the duration of the resource

Returns:
the duration of the resource

off64_t cUPnPResource::getFileSize (  )  const

Get the file size

Returns the file size in bytes of the resource or 0 if its unknown or a stream

Returns:
the file size

unsigned int cUPnPResource::getID (  )  const [inline]

Get resource ID

Gets the resource ID

Returns:
the resource ID

const char* cUPnPResource::getImportURI (  )  const [inline]

Get the import URI

This returns the import URI where the resource was located before importing it

Returns:
the import URI

time_t cUPnPResource::getLastModification (  )  const

Get the last modification

This returns the timestamp of the last modification to the file. If it is a stream, then its the current time.

Returns:
the timestamp with the last modification of the resource

unsigned int cUPnPResource::getNrAudioChannels (  )  const [inline]

Get number of audio channels

Returns the number of audio channels of the audio stream in a video

Returns:
the number of audio channels

const char* cUPnPResource::getProtocolInfo (  )  const [inline]

Get the protocol info

This returns the protocol info field of a resource

Returns:
the protocol info string

const char* cUPnPResource::getResolution (  )  const [inline]

Get the resolution

Returns the resolution string with the pattern width x height in pixels

Returns:
the resolution of the resource

const char* cUPnPResource::getResource (  )  const [inline]

Get the resources

Returns the resource. This is in most cases the file name or resource locator where to find the resource

Returns:
the resource string

int cUPnPResource::getResourceType (  )  const [inline]

Get the resource type

This returns the resource type of the resource.

Returns:
the resource type

unsigned int cUPnPResource::getSampleFrequency (  )  const [inline]

Get the sample frequency

Returns the sample frequency in samples per second.

Returns:
the sample frequency of the resource

unsigned long cUPnPResource::getSize (  )  const [inline]

Get the size

Returns the resource size or -1 if its unknown

Returns:
the resource size or -1 if unknown


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