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) |
![]() | |
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 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 | |
![]() | |
virtual | ~ReferenceCounter (void) |
Called on destruction, will warn if object deleted with references in place. More... | |
![]() | |
bool | m_logDebug |
This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More... | |
QAtomicInt | m_referenceCount {1} |
Definition at line 186 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 UPnpCDSTv::CreateRoot(), UPnpCDSMusic::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(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::PopulateArtworkURIS().
ContainerClass* CDSObject::AddSearchClass | ( | ContainerClass * | pClass | ) |
|
static |
Definition at line 811 of file upnpcdsobjects.cpp.
Referenced by CreateMusicAlbum(), CreatePhotoAlbum(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
|
static |
Definition at line 587 of file upnpcdsobjects.cpp.
|
static |
Definition at line 566 of file upnpcdsobjects.cpp.
|
static |
Definition at line 498 of file upnpcdsobjects.cpp.
Referenced by CreateAudioBook(), CreateAudioBroadcast(), and CreateMusicTrack().
|
static |
Definition at line 471 of file upnpcdsobjects.cpp.
Referenced by CreateAlbum(), CreateGenre(), CreatePerson(), CreatePlaylistContainer(), UPnpCDSTv::CreateRoot(), UPnpCDSMusic::CreateRoot(), UPnpCDSVideo::CreateRoot(), UPnpCDSExtension::CreateRoot(), CreateStorageFolder(), CreateStorageSystem(), CreateStorageVolume(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), and UPnpCDSTv::LoadRecGroups().
|
static |
Definition at line 873 of file upnpcdsobjects.cpp.
Referenced by CreateMovieGenre(), and CreateMusicGenre().
|
static |
Definition at line 720 of file upnpcdsobjects.cpp.
Referenced by CreatePhoto().
|
static |
Definition at line 453 of file upnpcdsobjects.cpp.
Referenced by CreateAudioItem(), CreateImageItem(), CreatePlaylistItem(), CreateTextItem(), and CreateVideoItem().
|
static |
Definition at line 664 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 903 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadGenres(), and UPnpCDSVideo::LoadGenres().
|
static |
Definition at line 838 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums().
|
static |
Definition at line 958 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadArtists().
|
static |
Definition at line 888 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadGenres().
|
static |
Definition at line 524 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadTracks().
|
static |
Definition at line 700 of file upnpcdsobjects.cpp.
|
static |
Definition at line 941 of file upnpcdsobjects.cpp.
Referenced by CreateMusicArtist().
|
static |
Definition at line 745 of file upnpcdsobjects.cpp.
|
static |
Definition at line 858 of file upnpcdsobjects.cpp.
|
static |
Definition at line 918 of file upnpcdsobjects.cpp.
|
static |
Definition at line 762 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1017 of file upnpcdsobjects.cpp.
|
static |
Definition at line 976 of file upnpcdsobjects.cpp.
|
static |
Definition at line 997 of file upnpcdsobjects.cpp.
|
static |
Definition at line 784 of file upnpcdsobjects.cpp.
|
static |
Definition at line 682 of file upnpcdsobjects.cpp.
|
static |
Definition at line 606 of file upnpcdsobjects.cpp.
Referenced by CreateMovie(), CreateMusicVideoClip(), CreateVideoBroadcast(), UPnpCDSTv::LoadRecordings(), and UPnpCDSVideo::LoadVideos().
Definition at line 1032 of file upnpcdsobjects.cpp.
Referenced by toXml().
CDSObject * CDSObject::GetChild | ( | const QString & | sID | ) |
Definition at line 183 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadMetadata(), UPnpCDSMusic::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 UPnpCDSTv::LoadChildren(), UPnpCDSMusic::LoadChildren(), UPnpCDSVideo::LoadChildren(), and toXml().
|
inline |
Definition at line 232 of file upnpcdsobjects.h.
QList< Property * > CDSObject::GetProperties | ( | const QString & | sName | ) |
Definition at line 96 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::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 UPnpCDSTv::CreateRoot(), UPnpCDSMusic::CreateRoot(), UPnpCDSVideo::CreateRoot(), UPnpCDS::HandleBrowse(), UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadArtists(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), UPnpCDSTv::LoadGenres(), UPnpCDSMusic::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 UPnpCDSTv::CreateRoot(), UPnpCDSMusic::CreateRoot(), UPnpCDSVideo::CreateRoot(), UPnpCDS::HandleBrowse(), UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadArtists(), UPnpCDSTv::LoadChannels(), UPnpCDSTv::LoadDates(), UPnpCDSTv::LoadGenres(), UPnpCDSMusic::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().
Definition at line 282 of file upnpcdsobjects.cpp.
Definition at line 199 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
Definition at line 200 of file upnpcdsobjects.h.
Referenced by CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
CDSObjects CDSObject::m_children |
Definition at line 215 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), GetChildCount(), toXml(), and ~CDSObject().
Classes CDSObject::m_CreateClass |
Definition at line 210 of file upnpcdsobjects.h.
ObjectTypes CDSObject::m_eType {OT_Container} |
Definition at line 191 of file upnpcdsobjects.h.
Referenced by AddChild(), CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
uint32_t CDSObject::m_nChildContainerCount {0} |
Definition at line 217 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildContainerCount(), and SetChildContainerCount().
uint32_t CDSObject::m_nChildCount {0} |
Definition at line 216 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildCount(), and SetChildCount().
short CDSObject::m_nUpdateId {1} |
Definition at line 189 of file upnpcdsobjects.h.
Referenced by UPnpCDS::HandleBrowse().
Properties CDSObject::m_properties |
Definition at line 214 of file upnpcdsobjects.h.
Referenced by AddProperty(), GetProperties(), GetPropValue(), SetPropValue(), toXml(), and ~CDSObject().
Resources CDSObject::m_resources |
Definition at line 219 of file upnpcdsobjects.h.
Referenced by AddResource(), toXml(), and ~CDSObject().
QString CDSObject::m_sClass |
Definition at line 198 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(), UPnpCDSMusic::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), UPnpCDSTv::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sCreator |
Definition at line 204 of file upnpcdsobjects.h.
Classes CDSObject::m_SearchClass |
Definition at line 209 of file upnpcdsobjects.h.
QString CDSObject::m_sId |
Definition at line 195 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), UPnpCDSMusic::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sParentId |
Definition at line 196 of file upnpcdsobjects.h.
Referenced by AddChild(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sTitle |
Definition at line 197 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sWriteStatus {"PROTECTED"} |
Definition at line 205 of file upnpcdsobjects.h.