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 36 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 50 of file upnpcdsobjects.cpp.
Definition at line 75 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().
QList< Property * > CDSObject::GetProperties | ( | const QString & | sName | ) |
Definition at line 97 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::PopulateArtworkURIS().
Definition at line 165 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::CreateRoot(), UPnpCDSMusic::CreateRoot(), and UPnpCDSVideo::CreateRoot().
|
inline |
Definition at line 232 of file upnpcdsobjects.h.
CDSObject * CDSObject::GetChild | ( | const QString & | sID | ) |
Definition at line 184 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadMetadata(), UPnpCDSMusic::LoadMetadata(), and UPnpCDSVideo::LoadMetadata().
ContainerClass* CDSObject::AddSearchClass | ( | ContainerClass * | pClass | ) |
ContainerClass* CDSObject::AddCreateClass | ( | ContainerClass * | pClass | ) |
void CDSObject::SetPropValue | ( | const QString & | sName, |
const QString & | sValue, | ||
const QString & | type = "" |
||
) |
Definition at line 115 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums(), UPnpCDSMusic::LoadGenres(), UPnpCDSTv::LoadRecordings(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), UPnpCDSTv::LoadTitles(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().
QString CDSObject::GetPropValue | ( | const QString & | sName | ) | const |
Definition at line 143 of file upnpcdsobjects.cpp.
Definition at line 264 of file upnpcdsobjects.cpp.
Referenced by UPnpCDS::HandleBrowse().
Definition at line 283 of file upnpcdsobjects.cpp.
uint32_t CDSObject::GetChildCount | ( | void | ) | const |
Return the number of children in this container.
Definition at line 219 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadChildren(), UPnpCDSMusic::LoadChildren(), UPnpCDSVideo::LoadChildren(), and toXml().
void CDSObject::SetChildCount | ( | uint32_t | nCount | ) |
Allows the caller to set childCount without having to load children.
Definition at line 232 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().
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 245 of file upnpcdsobjects.cpp.
Referenced by toXml().
void CDSObject::SetChildContainerCount | ( | uint32_t | nCount | ) |
Allows the caller to set childContainerCount without having to load children.
Definition at line 255 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().
Resource * CDSObject::AddResource | ( | const QString & | sProtocol, |
const QString & | sURI | ||
) |
Definition at line 205 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), UPnpCDSVideo::LoadVideos(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::PopulateArtworkURIS().
|
static |
Definition at line 454 of file upnpcdsobjects.cpp.
Referenced by CreateAudioItem(), CreateImageItem(), CreatePlaylistItem(), CreateTextItem(), and CreateVideoItem().
|
static |
Definition at line 472 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 499 of file upnpcdsobjects.cpp.
Referenced by CreateAudioBook(), CreateAudioBroadcast(), and CreateMusicTrack().
|
static |
Definition at line 525 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadTracks().
|
static |
Definition at line 567 of file upnpcdsobjects.cpp.
|
static |
Definition at line 588 of file upnpcdsobjects.cpp.
|
static |
Definition at line 607 of file upnpcdsobjects.cpp.
Referenced by CreateMovie(), CreateMusicVideoClip(), CreateVideoBroadcast(), UPnpCDSTv::LoadRecordings(), and UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 665 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 683 of file upnpcdsobjects.cpp.
|
static |
Definition at line 701 of file upnpcdsobjects.cpp.
|
static |
Definition at line 721 of file upnpcdsobjects.cpp.
Referenced by CreatePhoto().
|
static |
Definition at line 746 of file upnpcdsobjects.cpp.
|
static |
Definition at line 763 of file upnpcdsobjects.cpp.
|
static |
Definition at line 785 of file upnpcdsobjects.cpp.
|
static |
Definition at line 812 of file upnpcdsobjects.cpp.
Referenced by CreateMusicAlbum(), CreatePhotoAlbum(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
|
static |
Definition at line 839 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums().
|
static |
Definition at line 859 of file upnpcdsobjects.cpp.
|
static |
Definition at line 874 of file upnpcdsobjects.cpp.
Referenced by CreateMovieGenre(), and CreateMusicGenre().
|
static |
Definition at line 889 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadGenres().
|
static |
Definition at line 904 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadGenres(), and UPnpCDSVideo::LoadGenres().
|
static |
Definition at line 919 of file upnpcdsobjects.cpp.
|
static |
Definition at line 942 of file upnpcdsobjects.cpp.
Referenced by CreateMusicArtist().
|
static |
Definition at line 959 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadArtists().
|
static |
Definition at line 977 of file upnpcdsobjects.cpp.
|
static |
Definition at line 998 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1018 of file upnpcdsobjects.cpp.
Definition at line 1033 of file upnpcdsobjects.cpp.
Referenced by toXml().
short CDSObject::m_nUpdateId {1} |
Definition at line 189 of file upnpcdsobjects.h.
Referenced by UPnpCDS::HandleBrowse().
ObjectTypes CDSObject::m_eType {OT_Container} |
Definition at line 191 of file upnpcdsobjects.h.
Referenced by AddChild(), CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
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_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().
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().
QString CDSObject::m_sCreator |
Definition at line 204 of file upnpcdsobjects.h.
QString CDSObject::m_sWriteStatus {"PROTECTED"} |
Definition at line 205 of file upnpcdsobjects.h.
Classes CDSObject::m_SearchClass |
Definition at line 209 of file upnpcdsobjects.h.
Classes CDSObject::m_CreateClass |
Definition at line 210 of file upnpcdsobjects.h.
Properties CDSObject::m_properties |
Definition at line 214 of file upnpcdsobjects.h.
Referenced by AddProperty(), GetProperties(), GetPropValue(), SetPropValue(), toXml(), and ~CDSObject().
CDSObjects CDSObject::m_children |
Definition at line 215 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), GetChildCount(), toXml(), and ~CDSObject().
uint32_t CDSObject::m_nChildCount {0} |
Definition at line 216 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildCount(), and SetChildCount().
uint32_t CDSObject::m_nChildContainerCount {0} |
Definition at line 217 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildContainerCount(), and SetChildContainerCount().
Resources CDSObject::m_resources |
Definition at line 219 of file upnpcdsobjects.h.
Referenced by AddResource(), toXml(), and ~CDSObject().