#include <object.h>
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 |
This contains all details about a resource
unsigned int cUPnPResource::getBitrate | ( | ) | const [inline] |
Get the bitrate
This returns the bitrate of the resource in bits per second.
unsigned int cUPnPResource::getBitsPerSample | ( | ) | const [inline] |
Get the bits per sample
Returns the number of bits per sample.
unsigned int cUPnPResource::getColorDepth | ( | ) | const [inline] |
Get the color depth
Returns the color depth of the resource in pits per pixel
const char* cUPnPResource::getContentType | ( | ) | const [inline] |
Get the content type
Returns the mime type of the content of the resource
const char* cUPnPResource::getDuration | ( | ) | const [inline] |
Get the duration
Returns a date time string with 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
unsigned int cUPnPResource::getID | ( | ) | const [inline] |
Get resource ID
Gets 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
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.
unsigned int cUPnPResource::getNrAudioChannels | ( | ) | const [inline] |
Get number of audio channels
Returns the number of audio channels of the audio stream in a video
const char* cUPnPResource::getProtocolInfo | ( | ) | const [inline] |
Get the protocol info
This returns the protocol info field of a resource
const char* cUPnPResource::getResolution | ( | ) | const [inline] |
Get the resolution
Returns the resolution string with the pattern width x height in pixels
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
int cUPnPResource::getResourceType | ( | ) | const [inline] |
Get the resource type
This returns the resource type of the resource.
unsigned int cUPnPResource::getSampleFrequency | ( | ) | const [inline] |
Get the sample frequency
Returns the sample frequency in samples per second.
unsigned long cUPnPResource::getSize | ( | ) | const [inline] |
Get the size
Returns the resource size or -1 if its unknown