MythTV
master
|
#include <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 183 of file upnpcdsobjects.h.
|
explicit |
Definition at line 38 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 52 of file upnpcdsobjects.cpp.
Definition at line 77 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 99 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 229 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 117 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 279 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 450 of file upnpcdsobjects.cpp.
Referenced by CreateAudioItem(), CreateImageItem(), CreatePlaylistItem(), CreateTextItem(), and CreateVideoItem().
|
static |
Definition at line 468 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 495 of file upnpcdsobjects.cpp.
Referenced by CreateAudioBook(), CreateAudioBroadcast(), and CreateMusicTrack().
|
static |
Definition at line 521 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadTracks().
|
static |
Definition at line 563 of file upnpcdsobjects.cpp.
|
static |
Definition at line 584 of file upnpcdsobjects.cpp.
|
static |
Definition at line 603 of file upnpcdsobjects.cpp.
Referenced by CreateMovie(), CreateMusicVideoClip(), CreateVideoBroadcast(), UPnpCDSTv::LoadRecordings(), and UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 661 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 679 of file upnpcdsobjects.cpp.
|
static |
Definition at line 697 of file upnpcdsobjects.cpp.
|
static |
Definition at line 717 of file upnpcdsobjects.cpp.
Referenced by CreatePhoto().
|
static |
Definition at line 742 of file upnpcdsobjects.cpp.
|
static |
Definition at line 759 of file upnpcdsobjects.cpp.
|
static |
Definition at line 781 of file upnpcdsobjects.cpp.
|
static |
Definition at line 808 of file upnpcdsobjects.cpp.
Referenced by CreateMusicAlbum(), CreatePhotoAlbum(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
|
static |
Definition at line 835 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums().
|
static |
Definition at line 855 of file upnpcdsobjects.cpp.
|
static |
Definition at line 870 of file upnpcdsobjects.cpp.
Referenced by CreateMovieGenre(), and CreateMusicGenre().
|
static |
Definition at line 885 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadGenres().
|
static |
Definition at line 900 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadGenres(), and UPnpCDSVideo::LoadGenres().
|
static |
Definition at line 915 of file upnpcdsobjects.cpp.
|
static |
Definition at line 938 of file upnpcdsobjects.cpp.
Referenced by CreateMusicArtist().
|
static |
Definition at line 955 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadArtists().
|
static |
Definition at line 973 of file upnpcdsobjects.cpp.
|
static |
Definition at line 994 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1014 of file upnpcdsobjects.cpp.
Definition at line 1029 of file upnpcdsobjects.cpp.
Referenced by toXml().
short CDSObject::m_nUpdateId {1} |
Definition at line 186 of file upnpcdsobjects.h.
Referenced by UPnpCDS::HandleBrowse().
ObjectTypes CDSObject::m_eType {OT_Container} |
Definition at line 188 of file upnpcdsobjects.h.
Referenced by AddChild(), CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sId |
Definition at line 192 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), UPnpCDSMusic::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sParentId |
Definition at line 193 of file upnpcdsobjects.h.
Referenced by AddChild(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sTitle |
Definition at line 194 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sClass |
Definition at line 195 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 196 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
Definition at line 197 of file upnpcdsobjects.h.
Referenced by CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sCreator |
Definition at line 201 of file upnpcdsobjects.h.
QString CDSObject::m_sWriteStatus {"PROTECTED"} |
Definition at line 202 of file upnpcdsobjects.h.
Classes CDSObject::m_SearchClass |
Definition at line 206 of file upnpcdsobjects.h.
Classes CDSObject::m_CreateClass |
Definition at line 207 of file upnpcdsobjects.h.
Properties CDSObject::m_properties |
Definition at line 211 of file upnpcdsobjects.h.
Referenced by AddProperty(), GetProperties(), GetPropValue(), SetPropValue(), toXml(), and ~CDSObject().
CDSObjects CDSObject::m_children |
Definition at line 212 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), GetChildCount(), toXml(), and ~CDSObject().
uint32_t CDSObject::m_nChildCount {0} |
Definition at line 213 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildCount(), and SetChildCount().
uint32_t CDSObject::m_nChildContainerCount {0} |
Definition at line 214 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildContainerCount(), and SetChildContainerCount().
Resources CDSObject::m_resources |
Definition at line 216 of file upnpcdsobjects.h.
Referenced by AddResource(), toXml(), and ~CDSObject().