#include <object.h>
Public Member Functions | |
virtual cStringList * | getPropertyList () |
virtual bool | setProperty (const char *Property, const char *Value) |
virtual bool | getProperty (const char *Property, char **Value) const |
int | setDVDRegionCode (int RegionCode) |
int | setStorageMedium (const char *StorageMedium) |
int | getDVDRegionCode () const |
const char * | getStorageMedium () const |
Protected Member Functions | |
cUPnPClassMovie () | |
Protected Attributes | |
int | mDVDRegionCode |
The Region code of the movie (0 - 8). | |
cString | mStorageMedium |
The storage medium where the movie is stored. | |
Friends | |
class | cMediaDatabase |
class | cUPnPObjectMediator |
class | cUPnPMovieMediator |
This is a UPnP class Movie representation with all its properties.
cUPnPClassMovie::cUPnPClassMovie | ( | ) | [protected] |
Constructor of a movie
This creates a new instance of a movie
int cUPnPClassMovie::getDVDRegionCode | ( | ) | const [inline] |
Get the DVD region code
This returns the DVD region code. For more information, see http://en.wikipedia.org/wiki/DVD_region_code
The integer representation for ALL is 9.
bool cUPnPClassMovie::getProperty | ( | const char * | Property, | |
char ** | Value | |||
) | const [virtual] |
Gets a property
Returns the value of a specified property. The value is converted into a string.
true
, if the property existsfalse
, otherwise Property | the property which should be returned | |
Value | the value of that property |
Reimplemented from cUPnPClassVideoItem.
cStringList * cUPnPClassMovie::getPropertyList | ( | ) | [virtual] |
Get the properties of the object
This returns a property list with all the properties which can be obtained or set with getProperty
or setProperty
.
Reimplemented from cUPnPClassVideoItem.
const char* cUPnPClassMovie::getStorageMedium | ( | ) | const [inline] |
Get the storage medium
This returns the storage medium, where the movie resides.
int cUPnPClassMovie::setDVDRegionCode | ( | int | RegionCode | ) |
Sets the DVD region code
For more information on this, see http://en.wikipedia.org/wiki/DVD_region_code
The integer representation for ALL is 9.
0
, if setting was successful<0
, otherwise RegionCode | the region code of this movie |
bool cUPnPClassMovie::setProperty | ( | const char * | Property, | |
const char * | Value | |||
) | [virtual] |
Sets a property
Sets the value of a specified property. The value is converted from string into the propper data type
true
, if the property existsfalse
, otherwise Property | the property which should be set | |
Value | the value of that property |
Reimplemented from cUPnPClassVideoItem.
int cUPnPClassMovie::setStorageMedium | ( | const char * | StorageMedium | ) |