#include <fallback_layout.h>
Public Member Functions | |
| FallbackLayout () | |
| virtual void | processCdsObject (zmm::Ref< CdsObject > obj, zmm::String rootpath) |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Member Functions | |
| void | add (zmm::Ref< CdsObject > obj, int parentID, bool use_ref=true) |
| zmm::String | esc (zmm::String str) |
| void | addVideo (zmm::Ref< CdsObject > obj, zmm::String rootpath) |
| void | addImage (zmm::Ref< CdsObject > obj, zmm::String rootpath) |
| void | addAudio (zmm::Ref< CdsObject > obj) |
Protected Attributes | |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Definition at line 41 of file fallback_layout.h.
| FallbackLayout::FallbackLayout | ( | ) |
Definition at line 692 of file fallback_layout.cc.
References _, CFG_IMPORT_MAPPINGS_MIMETYPE_TO_CONTENTTYPE_LIST, CONTENT_TYPE_MPEG, Singleton< ConfigManager >::getInstance(), and string_ok().
| void FallbackLayout::add | ( | zmm::Ref< CdsObject > | obj, | |
| int | parentID, | |||
| bool | use_ref = true | |||
| ) | [protected] |
Definition at line 71 of file fallback_layout.cc.
References Singleton< ContentManager >::getInstance(), INVALID_OBJECT_ID, and OBJECT_FLAG_USE_RESOURCE_REF.
Referenced by addAudio(), addImage(), and addVideo().
Definition at line 361 of file fallback_layout.cc.
References _, add(), esc(), Singleton< ContentManager >::getInstance(), MetadataHandler::getMetaFieldName(), zmm::String::index(), INVALID_OBJECT_ID, M_ALBUM, M_ARTIST, M_DATE, M_DESCRIPTION, M_GENRE, M_TITLE, string_ok(), zmm::String::substring(), UPNP_DEFAULT_CLASS_MUSIC_ALBUM, and UPNP_DEFAULT_CLASS_MUSIC_GENRE.
Referenced by processCdsObject().
| void FallbackLayout::addImage | ( | zmm::Ref< CdsObject > | obj, | |
| zmm::String | rootpath | |||
| ) | [protected] |
Definition at line 290 of file fallback_layout.cc.
References _, _DIR_SEPARATOR, add(), DIR_SEPARATOR, esc(), StringConverter::f2i(), get_last_path(), Singleton< ContentManager >::getInstance(), MetadataHandler::getMetaFieldName(), zmm::String::index(), INVALID_OBJECT_ID, zmm::String::length(), M_DATE, zmm::String::rindex(), zmm::String::startsWith(), string_ok(), and zmm::String::substring().
Referenced by processCdsObject().
| void FallbackLayout::addVideo | ( | zmm::Ref< CdsObject > | obj, | |
| zmm::String | rootpath | |||
| ) | [protected] |
Definition at line 86 of file fallback_layout.cc.
References _, _DIR_SEPARATOR, add(), DIR_SEPARATOR, esc(), StringConverter::f2i(), get_last_path(), Singleton< ContentManager >::getInstance(), INVALID_OBJECT_ID, zmm::String::length(), zmm::String::rindex(), zmm::String::startsWith(), string_ok(), and zmm::String::substring().
Referenced by processCdsObject().
| zmm::String FallbackLayout::esc | ( | zmm::String | str | ) | [protected] |
Definition at line 81 of file fallback_layout.cc.
References escape(), VIRTUAL_CONTAINER_ESCAPE, and VIRTUAL_CONTAINER_SEPARATOR.
Referenced by addAudio(), addImage(), and addVideo().
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void FallbackLayout::processCdsObject | ( | zmm::Ref< CdsObject > | obj, | |
| zmm::String | rootpath | |||
| ) | [virtual] |
Implements Layout.
Definition at line 706 of file fallback_layout.cc.
References _, addAudio(), addImage(), addVideo(), CFG_IMPORT_MAPPINGS_MIMETYPE_TO_CONTENTTYPE_LIST, CONTENT_TYPE_DVD, CONTENT_TYPE_OGG, CONTENT_TYPE_PLAYLIST, CdsObject::createObject(), Singleton< ConfigManager >::getInstance(), log_debug, log_warning, OBJECT_FLAG_OGG_THEORA, OBJECT_FLAG_ONLINE_SERVICE, PROF_END, PROF_START, RefCast, and zmm::String::startsWith().
| 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().
| 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().
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().
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().
1.6.1