An Active Item in the content directory. More...
#include <cds_objects.h>
Public Member Functions | |
| CdsActiveItem () | |
| Constructor, sets the object type. | |
| void | setAction (zmm::String action) |
| Sets the action for the item. | |
| zmm::String | getAction () |
| Get the path of the action script. | |
| void | setState (zmm::String state) |
| Set action state. | |
| zmm::String | getState () |
| Retrieve the item state. | |
| virtual void | copyTo (zmm::Ref< CdsObject > obj) |
| Copies all object properties to another object. | |
| virtual int | equals (zmm::Ref< CdsObject > obj, bool exactly=false) |
| Checks if current object is equal to obj. | |
| virtual void | validate () |
| Checks if the minimum required parameters for the object have been set and are valid. | |
| void | setMimeType (zmm::String mimeType) |
| Set mime-type information of the media. | |
| zmm::String | getMimeType () |
| Query mime-type information. | |
| void | setTrackNumber (int trackNumber) |
| Sets the upnp:originalTrackNumber property. | |
| int | getTrackNumber () |
| virtual void | copyTo (zmm::Ref< CdsObject > obj) |
| Copies all object properties to another object. | |
| virtual int | equals (zmm::Ref< CdsObject > obj, bool exactly=false) |
| Checks if current object is equal to obj. | |
| virtual zmm::String | getVirtualPath () |
| Returns the path to the object as it appears in the database tree. | |
| void | setServiceID (zmm::String serviceID) |
| Set the unique service ID. | |
| zmm::String | getServiceID () |
| Retrieve the unique service ID. | |
| void | setID (int id) |
| Set the object ID. | |
| int | getID () |
| Retrieve the object ID. | |
| void | setRefID (int refID) |
| Set the reference object ID. | |
| int | getRefID () |
| Retrieve the reference object ID. | |
| void | setParentID (int parentID) |
| Set the parent ID of the object. | |
| int | getParentID () |
| Retrieve the objects parent ID. | |
| void | setRestricted (bool restricted) |
| Set the restricted flag. | |
| bool | isRestricted () |
| Query the restricted flag. | |
| void | setTitle (zmm::String title) |
| Set the object title (dc:title). | |
| zmm::String | getTitle () |
| Retrieve the title. | |
| void | setClass (zmm::String upnpClass) |
| set the upnp:class | |
| zmm::String | getClass () |
| Retrieve class. | |
| void | setLocation (zmm::String location) |
| Set the physical location of the media (usually an absolute path). | |
| zmm::String | getLocation () |
| Retrieve media location. | |
| void | setVirtual (bool virt) |
| Set the virtual flag. | |
| bool | isVirtual () |
| Query the virtual flag. | |
| unsigned int | getObjectType () |
| Query information on object type: item, container, etc. | |
| int | getSortPriority () |
| Retrive sort priority setting. | |
| void | setSortPriority (int sortPriority) |
| Set the sort prioroty of an object. | |
| unsigned int | getFlags () |
| Get flags of an object. | |
| unsigned int | getFlag (unsigned int mask) |
| Get a flag of an object. | |
| void | setFlags (unsigned int objectFlags) |
| Set flags for the object. | |
| void | setFlag (unsigned int mask) |
| Set a flag of the object. | |
| void | changeFlag (unsigned int mask, bool value) |
| Set a flag of the object. | |
| void | clearFlag (unsigned int mask) |
| Clears a flag of the object. | |
| zmm::String | getMetadata (zmm::String key) |
| Query single metadata value. | |
| zmm::Ref< Dictionary > | getMetadata () |
| Query entire metadata dictionary. | |
| void | setMetadata (zmm::Ref< Dictionary > metadata) |
| Set entire metadata dictionary. | |
| void | setMetadata (zmm::String key, zmm::String value) |
| Set a single metadata value. | |
| void | removeMetadata (zmm::String key) |
| Removes metadata with the given key. | |
| zmm::String | getAuxData (zmm::String key) |
| Query single auxdata value. | |
| zmm::Ref< Dictionary > | getAuxData () |
| Query entire auxdata dictionary. | |
| void | setAuxData (zmm::String key, zmm::String value) |
| Set a single auxdata value. | |
| void | setAuxData (zmm::Ref< Dictionary > auxdata) |
| Set entire auxdata dictionary. | |
| void | removeAuxData (zmm::String key) |
| Removes auxdata with the given key. | |
| int | getResourceCount () |
| Get number of resource tags. | |
| zmm::Ref< zmm::Array < CdsResource > > | getResources () |
| Query resources. | |
| void | setResources (zmm::Ref< zmm::Array< CdsResource > > res) |
| Set resources. | |
| zmm::Ref< CdsResource > | getResource (int index) |
| Query resource tag with the given index. | |
| void | addResource (zmm::Ref< CdsResource > resource) |
| Add resource tag. | |
| void | insertResource (int index, zmm::Ref< CdsResource > resource) |
| Insert resource tag at index. | |
| int | resourcesEqual (zmm::Ref< CdsObject > obj) |
| Checks if current object has the same resources as obj. | |
| void | optimize () |
| Frees unnecessary memory. | |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static zmm::Ref< CdsObject > | createObject (unsigned int objectType) |
| static zmm::String | mapObjectType (int objectType) |
| static int | remapObjectType (zmm::String objectType) |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Attributes | |
| zmm::String | action |
| action to be executed (an absolute path to a script that will process the XML) | |
| zmm::String | state |
| a field where you can save any string you wnat. | |
| zmm::String | mimeType |
| mime-type of the media. | |
| int | trackNumber |
| zmm::String | serviceID |
| unique service ID | |
| int | id |
| ID of the object in the content directory. | |
| int | refID |
| ID of the referenced object. | |
| int | parentID |
| ID of the object's parent. | |
| zmm::String | title |
| dc:title | |
| zmm::String | upnpClass |
| upnp:class | |
| zmm::String | location |
| Physical location of the media. | |
| int | virt |
| virtual object flag | |
| unsigned int | objectType |
| type of the object: item, container, etc. | |
| unsigned int | objectFlags |
| field which can hold various flags for the object | |
| int | sortPriority |
| flag that allows to sort objects within a container | |
| zmm::Ref< Dictionary > | metadata |
| zmm::Ref< Dictionary > | auxdata |
| zmm::Ref< zmm::Array < CdsResource > > | resources |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Friends | |
| int | CdsObjectTitleComparator (void *arg1, void *arg2) |
An Active Item in the content directory.
An active item is something very special, and it is not defined within UPnP. From the UPnP point of view it is a normal Item, but internally it does a little more. When an ActiveItem is played back (HTTP GET request for it's URL), a script is executed on the server. The script gets an XML representation of the item (actually a DIDL-Lite render) to the standard input, and has to return an appropriate XML to the standard output. The script may change most of the values of the Item. The only protected fields are object ID and parent ID. In case changes have taken place, a container update is issued.
You could use ActiveItems for a variety of things, implementing "toggle" items (ones that change between "on" and "off" with each activation) or just "trigger" items that do not change visible but trigger events on the server. For example, you could write a script and create an item to shutdown your PC when this item is played.
We plan to extend the ActiveItem functionality, allowing to control various server settings, and also being more flexible on the time of script execution (execute script before or after serving the media, etc.)
Definition at line 371 of file cds_objects.h.
| CdsActiveItem::CdsActiveItem | ( | ) |
Constructor, sets the object type.
Definition at line 204 of file cds_objects.cc.
References _, CdsItem::mimeType, MIMETYPE_DEFAULT, OBJECT_TYPE_ACTIVE_ITEM, CdsObject::objectType, UPNP_DEFAULT_CLASS_ACTIVE_ITEM, and CdsObject::upnpClass.
| void CdsObject::addResource | ( | zmm::Ref< CdsResource > | resource | ) | [inline, inherited] |
| void CdsObject::changeFlag | ( | unsigned int | mask, | |
| bool | value | |||
| ) | [inline, inherited] |
Set a flag of the object.
Definition at line 199 of file cds_objects.h.
References CdsObject::clearFlag(), and CdsObject::setFlag().
Referenced by CdsObject::setRestricted(), and CdsContainer::setSearchable().
| void CdsObject::clearFlag | ( | unsigned int | mask | ) | [inline, inherited] |
Clears a flag of the object.
Definition at line 202 of file cds_objects.h.
References CdsObject::objectFlags.
Referenced by CdsObject::changeFlag().
Copies all object properties to another object.
| obj | target object (clone) |
Definition at line 57 of file cds_objects.cc.
References CdsObject::auxdata, CdsObject::location, CdsObject::metadata, CdsObject::objectFlags, CdsObject::parentID, CdsObject::refID, CdsObject::resources, CdsObject::sortPriority, CdsObject::title, CdsObject::upnpClass, and CdsObject::virt.
Copies all object properties to another object.
| obj | target object (clone) |
Reimplemented from CdsItem.
Definition at line 212 of file cds_objects.cc.
References action, IS_CDS_ACTIVE_ITEM, RefCast, and state.
Definition at line 125 of file cds_objects.cc.
References _, _Exception, IS_CDS_ACTIVE_ITEM, IS_CDS_CONTAINER, IS_CDS_ITEM, IS_CDS_ITEM_EXTERNAL_URL, and IS_CDS_ITEM_INTERNAL_URL.
Referenced by ContentManager::convertObject(), SQLStorage::createObjectFromRow(), FileRequestHandler::open(), FallbackLayout::processCdsObject(), CacheObject::setObject(), and ContentManager::updateObject().
Checks if current object is equal to obj.
| obj | object to check against | |
| exactly | tells to check really everything or only the "public" version |
The difference between setting this flag to true or false is following: exactly=true checks all fields, also internal ones, exactly=false checks only the fields that will be visible in DIDL-Lite
Definition at line 73 of file cds_objects.cc.
References CdsObject::auxdata, CdsObject::isRestricted(), CdsObject::location, CdsObject::metadata, CdsObject::objectFlags, CdsObject::parentID, CdsObject::resourcesEqual(), CdsObject::sortPriority, CdsObject::title, CdsObject::upnpClass, and CdsObject::virt.
Referenced by CdsContainer::equals(), and CdsItem::equals().
Checks if current object is equal to obj.
See description for CdsObject::equals() for details.
Reimplemented from CdsItem.
Definition at line 221 of file cds_objects.cc.
References action, CdsItem::equals(), RefCast, and state.
| zmm::String CdsActiveItem::getAction | ( | ) | [inline] |
| zmm::Ref<Dictionary> CdsObject::getAuxData | ( | ) | [inline, inherited] |
Query entire auxdata dictionary.
Definition at line 229 of file cds_objects.h.
References CdsObject::auxdata.
| zmm::String CdsObject::getAuxData | ( | zmm::String | key | ) | [inline, inherited] |
Query single auxdata value.
Definition at line 225 of file cds_objects.h.
References CdsObject::auxdata.
| zmm::String CdsObject::getClass | ( | ) | [inline, inherited] |
| unsigned int CdsObject::getFlag | ( | unsigned int | mask | ) | [inline, inherited] |
Get a flag of an object.
Definition at line 190 of file cds_objects.h.
References CdsObject::objectFlags.
Referenced by CdsObject::isRestricted(), and CdsContainer::isSearchable().
| unsigned int CdsObject::getFlags | ( | ) | [inline, inherited] |
Get flags of an object.
Definition at line 187 of file cds_objects.h.
References CdsObject::objectFlags.
| int CdsObject::getID | ( | ) | [inline, inherited] |
Retrieve the object ID.
ID is the object ID that is used by the UPnP Content Directory service.
Definition at line 127 of file cds_objects.h.
References CdsObject::id.
Referenced by CdsContainer::getVirtualPath().
| zmm::String CdsObject::getLocation | ( | ) | [inline, inherited] |
Retrieve media location.
Definition at line 169 of file cds_objects.h.
References CdsObject::location.
Referenced by CdsContainer::getVirtualPath().
| zmm::Ref<Dictionary> CdsObject::getMetadata | ( | ) | [inline, inherited] |
Query entire metadata dictionary.
Definition at line 209 of file cds_objects.h.
References CdsObject::metadata.
| zmm::String CdsObject::getMetadata | ( | zmm::String | key | ) | [inline, inherited] |
Query single metadata value.
Definition at line 205 of file cds_objects.h.
References CdsObject::metadata.
| zmm::String CdsItem::getMimeType | ( | ) | [inline, inherited] |
Query mime-type information.
Definition at line 321 of file cds_objects.h.
References CdsItem::mimeType.
| unsigned int CdsObject::getObjectType | ( | ) | [inline, inherited] |
Query information on object type: item, container, etc.
Definition at line 178 of file cds_objects.h.
References CdsObject::objectType.
| int CdsObject::getParentID | ( | ) | [inline, inherited] |
Retrieve the objects parent ID.
Definition at line 145 of file cds_objects.h.
References CdsObject::parentID.
Referenced by CdsItem::getVirtualPath().
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| int CdsObject::getRefID | ( | ) | [inline, inherited] |
Retrieve the reference object ID.
This is the reference ID that is used by the UPnP Content Directory service. It also links the reference and the original objects in the database.
Definition at line 139 of file cds_objects.h.
References CdsObject::refID.
| zmm::Ref<CdsResource> CdsObject::getResource | ( | int | index | ) | [inline, inherited] |
Query resource tag with the given index.
Definition at line 256 of file cds_objects.h.
References CdsObject::resources.
| int CdsObject::getResourceCount | ( | ) | [inline, inherited] |
Get number of resource tags.
Definition at line 245 of file cds_objects.h.
References CdsObject::resources.
| zmm::Ref<zmm::Array<CdsResource> > CdsObject::getResources | ( | ) | [inline, inherited] |
| zmm::String CdsItem::getServiceID | ( | ) | [inline, inherited] |
Retrieve the unique service ID.
Definition at line 346 of file cds_objects.h.
References CdsItem::serviceID.
| int CdsObject::getSortPriority | ( | ) | [inline, inherited] |
Retrive sort priority setting.
Definition at line 181 of file cds_objects.h.
References CdsObject::sortPriority.
| zmm::String CdsActiveItem::getState | ( | ) | [inline] |
| zmm::String CdsObject::getTitle | ( | ) | [inline, inherited] |
Retrieve the title.
Definition at line 157 of file cds_objects.h.
References CdsObject::title.
Referenced by CdsItem::getVirtualPath().
| int CdsItem::getTrackNumber | ( | ) | [inline, inherited] |
Definition at line 326 of file cds_objects.h.
References CdsItem::trackNumber.
| String CdsItem::getVirtualPath | ( | ) | [virtual, inherited] |
Returns the path to the object as it appears in the database tree.
Implements CdsObject.
Definition at line 357 of file cds_objects.cc.
References _, _Exception, Storage::getInstance(), CdsObject::getParentID(), CdsObject::getTitle(), CdsObject::location, and string_ok().
| void CdsObject::insertResource | ( | int | index, | |
| zmm::Ref< CdsResource > | resource | |||
| ) | [inline, inherited] |
Insert resource tag at index.
Definition at line 264 of file cds_objects.h.
References CdsObject::resources.
| bool CdsObject::isRestricted | ( | ) | [inline, inherited] |
Query the restricted flag.
Definition at line 151 of file cds_objects.h.
References CdsObject::getFlag(), and OBJECT_FLAG_RESTRICTED.
Referenced by CdsObject::equals().
| bool CdsObject::isVirtual | ( | ) | [inline, inherited] |
Query the virtual flag.
Definition at line 175 of file cds_objects.h.
References CdsObject::virt.
Referenced by CdsContainer::getVirtualPath().
| String CdsObject::mapObjectType | ( | int | objectType | ) | [static, inherited] |
Definition at line 370 of file cds_objects.cc.
References _, IS_CDS_ACTIVE_ITEM, IS_CDS_CONTAINER, IS_CDS_ITEM_EXTERNAL_URL, IS_CDS_ITEM_INTERNAL_URL, IS_CDS_PURE_ITEM, STRING_OBJECT_TYPE_ACTIVE_ITEM, STRING_OBJECT_TYPE_CONTAINER, STRING_OBJECT_TYPE_EXTERNAL_URL, STRING_OBJECT_TYPE_INTERNAL_URL, and STRING_OBJECT_TYPE_ITEM.
Referenced by web::edit_load::process().
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void CdsObject::optimize | ( | ) | [inherited] |
Frees unnecessary memory.
Definition at line 315 of file cds_objects.cc.
References CdsObject::auxdata, CdsObject::metadata, and CdsObject::resources.
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| int CdsObject::remapObjectType | ( | zmm::String | objectType | ) | [static, inherited] |
Definition at line 385 of file cds_objects.cc.
References _, OBJECT_TYPE_ACTIVE_ITEM, OBJECT_TYPE_CONTAINER, OBJECT_TYPE_ITEM, OBJECT_TYPE_ITEM_EXTERNAL_URL, OBJECT_TYPE_ITEM_INTERNAL_URL, STRING_OBJECT_TYPE_ACTIVE_ITEM, STRING_OBJECT_TYPE_CONTAINER, STRING_OBJECT_TYPE_EXTERNAL_URL, STRING_OBJECT_TYPE_INTERNAL_URL, and STRING_OBJECT_TYPE_ITEM.
| void CdsObject::removeAuxData | ( | zmm::String | key | ) | [inline, inherited] |
Removes auxdata with the given key.
Definition at line 240 of file cds_objects.h.
References CdsObject::auxdata.
| void CdsObject::removeMetadata | ( | zmm::String | key | ) | [inline, inherited] |
Removes metadata with the given key.
Definition at line 220 of file cds_objects.h.
References CdsObject::metadata.
Checks if current object has the same resources as obj.
| obj | object to check against |
Definition at line 101 of file cds_objects.cc.
References CdsObject::resources.
Referenced by CdsObject::equals().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| void CdsActiveItem::setAction | ( | zmm::String | action | ) | [inline] |
Sets the action for the item.
| action | absolute path to the script that will process the XML data. |
Definition at line 386 of file cds_objects.h.
| void CdsObject::setAuxData | ( | zmm::Ref< Dictionary > | auxdata | ) | [inline, inherited] |
Set entire auxdata dictionary.
Definition at line 236 of file cds_objects.h.
| void CdsObject::setAuxData | ( | zmm::String | key, | |
| zmm::String | value | |||
| ) | [inline, inherited] |
Set a single auxdata value.
Definition at line 232 of file cds_objects.h.
References CdsObject::auxdata.
| void CdsObject::setClass | ( | zmm::String | upnpClass | ) | [inline, inherited] |
set the upnp:class
Definition at line 160 of file cds_objects.h.
| void CdsObject::setFlag | ( | unsigned int | mask | ) | [inline, inherited] |
Set a flag of the object.
Definition at line 196 of file cds_objects.h.
References CdsObject::objectFlags.
Referenced by CdsObject::changeFlag().
| void CdsObject::setFlags | ( | unsigned int | objectFlags | ) | [inline, inherited] |
Set flags for the object.
Definition at line 193 of file cds_objects.h.
| void CdsObject::setID | ( | int | id | ) | [inline, inherited] |
Set the object ID.
ID is the object ID that is used by the UPnP Content Directory service.
Definition at line 122 of file cds_objects.h.
| void CdsObject::setLocation | ( | zmm::String | location | ) | [inline, inherited] |
Set the physical location of the media (usually an absolute path).
Definition at line 166 of file cds_objects.h.
| void CdsObject::setMetadata | ( | zmm::String | key, | |
| zmm::String | value | |||
| ) | [inline, inherited] |
Set a single metadata value.
Definition at line 216 of file cds_objects.h.
References CdsObject::metadata.
| void CdsObject::setMetadata | ( | zmm::Ref< Dictionary > | metadata | ) | [inline, inherited] |
Set entire metadata dictionary.
Definition at line 212 of file cds_objects.h.
| void CdsItem::setMimeType | ( | zmm::String | mimeType | ) | [inline, inherited] |
Set mime-type information of the media.
Definition at line 318 of file cds_objects.h.
| void CdsObject::setParentID | ( | int | parentID | ) | [inline, inherited] |
Set the parent ID of the object.
Definition at line 142 of file cds_objects.h.
| void CdsObject::setRefID | ( | int | refID | ) | [inline, inherited] |
Set the reference object ID.
This is the reference ID that is used by the UPnP Content Directory service. It also links the reference and the original objects in the database.
Definition at line 133 of file cds_objects.h.
| void CdsObject::setResources | ( | zmm::Ref< zmm::Array< CdsResource > > | res | ) | [inline, inherited] |
| void CdsObject::setRestricted | ( | bool | restricted | ) | [inline, inherited] |
Set the restricted flag.
Definition at line 148 of file cds_objects.h.
References CdsObject::changeFlag(), and OBJECT_FLAG_RESTRICTED.
| void CdsItem::setServiceID | ( | zmm::String | serviceID | ) | [inline, inherited] |
Set the unique service ID.
Definition at line 343 of file cds_objects.h.
| void CdsObject::setSortPriority | ( | int | sortPriority | ) | [inline, inherited] |
Set the sort prioroty of an object.
Definition at line 184 of file cds_objects.h.
| void CdsActiveItem::setState | ( | zmm::String | state | ) | [inline] |
Set action state.
| state | any string you want. |
This is quite useful to let the script identify what state the item is in. Think of it as a cookie (did I already mention that I hate web cookies?)
Definition at line 396 of file cds_objects.h.
| void CdsObject::setTitle | ( | zmm::String | title | ) | [inline, inherited] |
Set the object title (dc:title).
Definition at line 154 of file cds_objects.h.
| void CdsItem::setTrackNumber | ( | int | trackNumber | ) | [inline, inherited] |
Sets the upnp:originalTrackNumber property.
Definition at line 324 of file cds_objects.h.
| void CdsObject::setVirtual | ( | bool | virt | ) | [inline, inherited] |
Set the virtual flag.
Definition at line 172 of file cds_objects.h.
| void CdsActiveItem::validate | ( | ) | [virtual] |
Checks if the minimum required parameters for the object have been set and are valid.
Reimplemented from CdsItem.
Definition at line 234 of file cds_objects.cc.
References _, _Exception, action, check_path(), and string_ok().
| int CdsObjectTitleComparator | ( | void * | arg1, | |
| void * | arg2 | |||
| ) | [friend, inherited] |
Definition at line 322 of file cds_objects.cc.
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
zmm::String CdsActiveItem::action [protected] |
action to be executed (an absolute path to a script that will process the XML)
Definition at line 375 of file cds_objects.h.
Referenced by copyTo(), equals(), getAction(), and validate().
zmm::Ref<Dictionary> CdsObject::auxdata [protected, inherited] |
Definition at line 111 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::equals(), CdsObject::getAuxData(), CdsObject::optimize(), CdsObject::removeAuxData(), and CdsObject::setAuxData().
int CdsObject::id [protected, inherited] |
ID of the object in the content directory.
Definition at line 81 of file cds_objects.h.
Referenced by CdsObject::getID().
zmm::String CdsObject::location [protected, inherited] |
Physical location of the media.
Definition at line 96 of file cds_objects.h.
Referenced by CdsObject::copyTo(), CdsObject::equals(), CdsObject::getLocation(), CdsItemExternalURL::getURL(), CdsItem::getVirtualPath(), CdsContainer::getVirtualPath(), CdsItemExternalURL::setURL(), CdsItemInternalURL::validate(), CdsItemExternalURL::validate(), and CdsItem::validate().
zmm::Ref<Dictionary> CdsObject::metadata [protected, inherited] |
Definition at line 110 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::equals(), CdsObject::getMetadata(), CdsObject::optimize(), CdsObject::removeMetadata(), and CdsObject::setMetadata().
zmm::String CdsItem::mimeType [protected, inherited] |
mime-type of the media.
Definition at line 306 of file cds_objects.h.
Referenced by CdsActiveItem(), CdsItem::CdsItem(), CdsItemExternalURL::CdsItemExternalURL(), CdsItemInternalURL::CdsItemInternalURL(), CdsItem::copyTo(), CdsItem::equals(), CdsItem::getMimeType(), CdsItemExternalURL::validate(), and CdsItem::validate().
pthread_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
unsigned int CdsObject::objectFlags [protected, inherited] |
field which can hold various flags for the object
Definition at line 105 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::clearFlag(), CdsObject::copyTo(), CdsObject::equals(), CdsObject::getFlag(), CdsObject::getFlags(), and CdsObject::setFlag().
unsigned int CdsObject::objectType [protected, inherited] |
type of the object: item, container, etc.
Definition at line 102 of file cds_objects.h.
Referenced by CdsActiveItem(), CdsContainer::CdsContainer(), CdsItem::CdsItem(), CdsItemExternalURL::CdsItemExternalURL(), CdsItemInternalURL::CdsItemInternalURL(), and CdsObject::getObjectType().
int CdsObject::parentID [protected, inherited] |
ID of the object's parent.
Definition at line 87 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::equals(), and CdsObject::getParentID().
int CdsObject::refID [protected, inherited] |
ID of the referenced object.
Definition at line 84 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), and CdsObject::getRefID().
zmm::Ref<zmm::Array<CdsResource> > CdsObject::resources [protected, inherited] |
Definition at line 112 of file cds_objects.h.
Referenced by CdsObject::addResource(), CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::getResource(), CdsObject::getResourceCount(), CdsObject::getResources(), CdsObject::insertResource(), CdsObject::optimize(), CdsObject::resourcesEqual(), and CdsObject::setResources().
zmm::String CdsItem::serviceID [protected, inherited] |
unique service ID
Definition at line 311 of file cds_objects.h.
Referenced by CdsItem::CdsItem(), CdsItem::copyTo(), CdsItem::equals(), and CdsItem::getServiceID().
int CdsObject::sortPriority [protected, inherited] |
flag that allows to sort objects within a container
Definition at line 108 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::equals(), and CdsObject::getSortPriority().
zmm::String CdsActiveItem::state [protected] |
a field where you can save any string you wnat.
Definition at line 378 of file cds_objects.h.
Referenced by copyTo(), equals(), and getState().
zmm::String CdsObject::title [protected, inherited] |
dc:title
Definition at line 90 of file cds_objects.h.
Referenced by CdsObject::copyTo(), CdsObject::equals(), CdsObject::getTitle(), and CdsObject::validate().
int CdsItem::trackNumber [protected, inherited] |
Definition at line 308 of file cds_objects.h.
Referenced by CdsItem::CdsItem(), CdsItem::copyTo(), CdsItem::equals(), and CdsItem::getTrackNumber().
zmm::String CdsObject::upnpClass [protected, inherited] |
upnp:class
Definition at line 93 of file cds_objects.h.
Referenced by CdsActiveItem(), CdsContainer::CdsContainer(), CdsItem::CdsItem(), CdsItemExternalURL::CdsItemExternalURL(), CdsItemInternalURL::CdsItemInternalURL(), CdsObject::copyTo(), CdsObject::equals(), CdsObject::getClass(), and CdsObject::validate().
int CdsObject::virt [protected, inherited] |
virtual object flag
Definition at line 99 of file cds_objects.h.
Referenced by CdsObject::CdsObject(), CdsObject::copyTo(), CdsObject::equals(), and CdsObject::isVirtual().
1.6.1