|
MythTV master
|
#include <libmythupnp/upnpcdsobjects.h>
Public Member Functions | |
| CDSObject (const QString &sId="-1", const QString &sTitle="", const QString &sParentId="-1") | |
| ~CDSObject () override | |
| Property * | AddProperty (Property *pProp) |
| QList< Property * > | GetProperties (const QString &sName) |
| CDSObject * | AddChild (CDSObject *pChild) |
| CDSObjects | GetChildren (void) const |
| CDSObject * | GetChild (const QString &sID) |
| ContainerClass * | AddSearchClass (ContainerClass *pClass) |
| ContainerClass * | AddCreateClass (ContainerClass *pClass) |
| void | SetPropValue (const QString &sName, const QString &sValue, const QString &type="") |
| QString | GetPropValue (const QString &sName) const |
| QString | toXml (FilterMap &filter, bool ignoreChildren=false) const |
| void | toXml (QTextStream &os, FilterMap &filter, bool ignoreChildren=false) const |
| uint32_t | GetChildCount (void) const |
| Return the number of children in this container. More... | |
| void | SetChildCount (uint32_t nCount) |
| Allows the caller to set childCount without having to load children. More... | |
| uint32_t | GetChildContainerCount (void) const |
| Return the number of child containers in this container. More... | |
| void | SetChildContainerCount (uint32_t nCount) |
| Allows the caller to set childContainerCount without having to load children. More... | |
| Resource * | AddResource (const QString &sProtocol, const QString &sURI) |
Public Member Functions inherited from ReferenceCounter | |
| ReferenceCounter (const QString &debugName, bool logDebug=true) | |
| Creates reference counter with an initial value of 1. More... | |
| virtual int | IncrRef (void) |
| Increments reference count. More... | |
| virtual int | DecrRef (void) |
| Decrements reference count and deletes on 0. More... | |
Static Public Member Functions | |
| static CDSObject * | CreateItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateContainer (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateAudioItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMusicTrack (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateAudioBroadcast (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateAudioBook (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateVideoItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMovie (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateVideoBroadcast (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMusicVideoClip (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateImageItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreatePhoto (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreatePlaylistItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateTextItem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateAlbum (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMusicAlbum (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreatePhotoAlbum (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateGenre (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMusicGenre (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMovieGenre (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreatePlaylistContainer (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreatePerson (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateMusicArtist (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateStorageSystem (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateStorageVolume (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
| static CDSObject * | CreateStorageFolder (const QString &sId, const QString &sTitle, const QString &sParentId, CDSObject *pObject=nullptr) |
Static Public Member Functions inherited from ReferenceCounter | |
| static void | PrintDebug (void) |
| Print out any leaks if that level of debugging is enabled. More... | |
Public Attributes | |
| short | m_nUpdateId {1} |
| ObjectTypes | m_eType {OT_Container} |
| QString | m_sId |
| QString | m_sParentId |
| QString | m_sTitle |
| QString | m_sClass |
| bool | m_bRestricted {true} |
| bool | m_bSearchable {false} |
| QString | m_sCreator |
| QString | m_sWriteStatus {"PROTECTED"} |
| Classes | m_SearchClass |
| Classes | m_CreateClass |
| Properties | m_properties |
| CDSObjects | m_children |
| uint32_t | m_nChildCount {0} |
| uint32_t | m_nChildContainerCount {0} |
| Resources | m_resources |
Static Private Member Functions | |
| static bool | FilterContains (const FilterMap &filter, const QString &name) |
Additional Inherited Members | |
Protected Member Functions inherited from ReferenceCounter | |
| virtual | ~ReferenceCounter (void) |
| Called on destruction, will warn if object deleted with references in place. More... | |
Protected Attributes inherited from ReferenceCounter | |
| bool | m_logDebug |
| This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More... | |
| QAtomicInt | m_referenceCount {1} |
Definition at line 190 of file upnpcdsobjects.h.
|
explicit |
Definition at line 35 of file upnpcdsobjects.cpp.
Referenced by CreateAlbum(), CreateAudioBook(), CreateAudioBroadcast(), CreateAudioItem(), CreateContainer(), CreateGenre(), CreateImageItem(), CreateItem(), CreateMovie(), CreateMovieGenre(), CreateMusicAlbum(), CreateMusicArtist(), CreateMusicGenre(), CreateMusicTrack(), CreateMusicVideoClip(), CreatePerson(), CreatePhoto(), CreatePhotoAlbum(), CreatePlaylistContainer(), CreatePlaylistItem(), CreateStorageFolder(), CreateStorageSystem(), CreateStorageVolume(), CreateTextItem(), CreateVideoBroadcast(), and CreateVideoItem().
|
override |
Definition at line 49 of file upnpcdsobjects.cpp.
Definition at line 164 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::CreateRoot(), UPnpCDSTv::CreateRoot(), and UPnpCDSVideo::CreateRoot().
| ContainerClass * CDSObject::AddCreateClass | ( | ContainerClass * | pClass | ) |
Definition at line 74 of file upnpcdsobjects.cpp.
Referenced by CreateAlbum(), CreateAudioBook(), CreateAudioBroadcast(), CreateAudioItem(), CreateContainer(), CreateImageItem(), CreateItem(), CreateMovie(), CreateMusicAlbum(), CreateMusicArtist(), CreateMusicTrack(), CreateMusicVideoClip(), CreatePerson(), CreatePhoto(), CreatePlaylistContainer(), CreatePlaylistItem(), CreateStorageFolder(), CreateStorageSystem(), CreateStorageVolume(), CreateTextItem(), CreateVideoBroadcast(), and CreateVideoItem().
| Resource * CDSObject::AddResource | ( | const QString & | sProtocol, |
| const QString & | sURI | ||
| ) |
Definition at line 204 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), UPnpCDSVideo::LoadVideos(), UPnpCDSTv::PopulateArtworkURIS(), and UPnpCDSVideo::PopulateArtworkURIS().
| ContainerClass * CDSObject::AddSearchClass | ( | ContainerClass * | pClass | ) |
|
static |
Definition at line 812 of file upnpcdsobjects.cpp.
Referenced by CreateMusicAlbum(), CreatePhotoAlbum(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
|
static |
Definition at line 588 of file upnpcdsobjects.cpp.
|
static |
Definition at line 567 of file upnpcdsobjects.cpp.
|
static |
Definition at line 499 of file upnpcdsobjects.cpp.
Referenced by CreateAudioBook(), CreateAudioBroadcast(), and CreateMusicTrack().
|
static |
Definition at line 472 of file upnpcdsobjects.cpp.
Referenced by CreateAlbum(), CreateGenre(), CreatePerson(), CreatePlaylistContainer(), UPnpCDSExtension::CreateRoot(), UPnpCDSMusic::CreateRoot(), UPnpCDSTv::CreateRoot(), UPnpCDSVideo::CreateRoot(), CreateStorageFolder(), CreateStorageSystem(), CreateStorageVolume(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), and UPnpCDSTv::LoadRecGroups().
|
static |
Definition at line 874 of file upnpcdsobjects.cpp.
Referenced by CreateMovieGenre(), and CreateMusicGenre().
|
static |
Definition at line 721 of file upnpcdsobjects.cpp.
Referenced by CreatePhoto().
|
static |
Definition at line 454 of file upnpcdsobjects.cpp.
Referenced by CreateAudioItem(), CreateImageItem(), CreatePlaylistItem(), CreateTextItem(), and CreateVideoItem().
|
static |
Definition at line 665 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 904 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadGenres(), and UPnpCDSVideo::LoadGenres().
|
static |
Definition at line 839 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums().
|
static |
Definition at line 959 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadArtists().
|
static |
Definition at line 889 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadGenres().
|
static |
Definition at line 525 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadTracks().
|
static |
Definition at line 701 of file upnpcdsobjects.cpp.
|
static |
Definition at line 942 of file upnpcdsobjects.cpp.
Referenced by CreateMusicArtist().
|
static |
Definition at line 746 of file upnpcdsobjects.cpp.
|
static |
Definition at line 859 of file upnpcdsobjects.cpp.
|
static |
Definition at line 919 of file upnpcdsobjects.cpp.
|
static |
Definition at line 763 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1018 of file upnpcdsobjects.cpp.
|
static |
Definition at line 977 of file upnpcdsobjects.cpp.
|
static |
Definition at line 998 of file upnpcdsobjects.cpp.
|
static |
Definition at line 785 of file upnpcdsobjects.cpp.
|
static |
Definition at line 683 of file upnpcdsobjects.cpp.
|
static |
Definition at line 607 of file upnpcdsobjects.cpp.
Referenced by CreateMovie(), CreateMusicVideoClip(), CreateVideoBroadcast(), UPnpCDSTv::LoadRecordings(), and UPnpCDSVideo::LoadVideos().
|
staticprivate |
Definition at line 1033 of file upnpcdsobjects.cpp.
Referenced by toXml().
| CDSObject * CDSObject::GetChild | ( | const QString & | sID | ) |
Definition at line 183 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadMetadata(), UPnpCDSTv::LoadMetadata(), and UPnpCDSVideo::LoadMetadata().
| uint32_t CDSObject::GetChildContainerCount | ( | void | ) | const |
Return the number of child containers in this container.
Per the UPnP Content Directory Service spec returning the number of containers lets the client determine the number of items by subtracting this value from the childCount
Definition at line 244 of file upnpcdsobjects.cpp.
Referenced by toXml().
| uint32_t CDSObject::GetChildCount | ( | void | ) | const |
Return the number of children in this container.
Definition at line 218 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadChildren(), UPnpCDSTv::LoadChildren(), UPnpCDSVideo::LoadChildren(), and toXml().
|
inline |
Definition at line 236 of file upnpcdsobjects.h.
| QList< Property * > CDSObject::GetProperties | ( | const QString & | sName | ) |
Definition at line 96 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSMusic::PopulateArtworkURIS().
| QString CDSObject::GetPropValue | ( | const QString & | sName | ) | const |
Definition at line 142 of file upnpcdsobjects.cpp.
| void CDSObject::SetChildContainerCount | ( | uint32_t | nCount | ) |
Allows the caller to set childContainerCount without having to load children.
Definition at line 254 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::CreateRoot(), UPnpCDSTv::CreateRoot(), UPnpCDSVideo::CreateRoot(), UPnpCDS::HandleBrowse(), UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadArtists(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), UPnpCDSMusic::LoadGenres(), UPnpCDSTv::LoadGenres(), UPnpCDSVideo::LoadGenres(), UPnpCDSTv::LoadRecGroups(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
| void CDSObject::SetChildCount | ( | uint32_t | nCount | ) |
Allows the caller to set childCount without having to load children.
Definition at line 231 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::CreateRoot(), UPnpCDSTv::CreateRoot(), UPnpCDSVideo::CreateRoot(), UPnpCDS::HandleBrowse(), UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadArtists(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), UPnpCDSMusic::LoadGenres(), UPnpCDSTv::LoadGenres(), UPnpCDSVideo::LoadGenres(), UPnpCDSTv::LoadRecGroups(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
| void CDSObject::SetPropValue | ( | const QString & | sName, |
| const QString & | sValue, | ||
| const QString & | type = "" |
||
| ) |
Definition at line 114 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadGenres(), UPnpCDSTv::LoadRecordings(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), UPnpCDSTv::LoadTitles(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().
Definition at line 263 of file upnpcdsobjects.cpp.
Referenced by UPnpCDS::HandleBrowse(), and toXml().
Definition at line 283 of file upnpcdsobjects.cpp.
| bool CDSObject::m_bRestricted {true} |
Definition at line 203 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
| bool CDSObject::m_bSearchable {false} |
Definition at line 204 of file upnpcdsobjects.h.
Referenced by CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
| CDSObjects CDSObject::m_children |
Definition at line 219 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), GetChildCount(), toXml(), and ~CDSObject().
| Classes CDSObject::m_CreateClass |
Definition at line 214 of file upnpcdsobjects.h.
| ObjectTypes CDSObject::m_eType {OT_Container} |
Definition at line 195 of file upnpcdsobjects.h.
Referenced by AddChild(), CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
| uint32_t CDSObject::m_nChildContainerCount {0} |
Definition at line 221 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildContainerCount(), and SetChildContainerCount().
| uint32_t CDSObject::m_nChildCount {0} |
Definition at line 220 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildCount(), and SetChildCount().
| short CDSObject::m_nUpdateId {1} |
Definition at line 193 of file upnpcdsobjects.h.
Referenced by UPnpCDS::HandleBrowse().
| Properties CDSObject::m_properties |
Definition at line 218 of file upnpcdsobjects.h.
Referenced by AddProperty(), GetProperties(), GetPropValue(), SetPropValue(), toXml(), and ~CDSObject().
| Resources CDSObject::m_resources |
Definition at line 223 of file upnpcdsobjects.h.
Referenced by AddResource(), toXml(), and ~CDSObject().
| QString CDSObject::m_sClass |
Definition at line 202 of file upnpcdsobjects.h.
Referenced by CreateAlbum(), CreateAudioBook(), CreateAudioBroadcast(), CreateAudioItem(), CreateContainer(), CreateGenre(), CreateImageItem(), CreateItem(), CreateMovie(), CreateMovieGenre(), CreateMusicAlbum(), CreateMusicArtist(), CreateMusicGenre(), CreateMusicTrack(), CreateMusicVideoClip(), CreatePerson(), CreatePhoto(), CreatePhotoAlbum(), CreatePlaylistContainer(), CreatePlaylistItem(), CreateStorageFolder(), CreateStorageSystem(), CreateStorageVolume(), CreateTextItem(), CreateVideoBroadcast(), CreateVideoItem(), UPnpCDSTv::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), UPnpCDSMusic::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
| QString CDSObject::m_sCreator |
Definition at line 208 of file upnpcdsobjects.h.
| Classes CDSObject::m_SearchClass |
Definition at line 213 of file upnpcdsobjects.h.
| QString CDSObject::m_sId |
Definition at line 199 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), UPnpCDSMusic::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
| QString CDSObject::m_sParentId |
Definition at line 200 of file upnpcdsobjects.h.
Referenced by AddChild(), toXml(), and UPnpCDS::UPnpCDS().
| QString CDSObject::m_sTitle |
Definition at line 201 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
| QString CDSObject::m_sWriteStatus {"PROTECTED"} |
Definition at line 209 of file upnpcdsobjects.h.