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 184 of file upnpcdsobjects.h.
|
explicit |
Definition at line 44 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 58 of file upnpcdsobjects.cpp.
Definition at line 83 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 105 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::PopulateArtworkURIS(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::PopulateArtworkURIS().
Definition at line 171 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::CreateRoot(), UPnpCDSMusic::CreateRoot(), and UPnpCDSVideo::CreateRoot().
|
inline |
Definition at line 230 of file upnpcdsobjects.h.
CDSObject * CDSObject::GetChild | ( | const QString & | sID | ) |
Definition at line 190 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 123 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 149 of file upnpcdsobjects.cpp.
Definition at line 270 of file upnpcdsobjects.cpp.
Referenced by UPnpCDS::HandleBrowse().
Definition at line 289 of file upnpcdsobjects.cpp.
uint32_t CDSObject::GetChildCount | ( | void | ) | const |
Return the number of children in this container.
Definition at line 225 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 238 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 251 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 261 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 211 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), UPnpCDSVideo::LoadVideos(), UPnpCDSVideo::PopulateArtworkURIS(), and UPnpCDSTv::PopulateArtworkURIS().
|
static |
Definition at line 460 of file upnpcdsobjects.cpp.
Referenced by CreateAudioItem(), CreateImageItem(), CreatePlaylistItem(), CreateTextItem(), and CreateVideoItem().
|
static |
Definition at line 478 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 505 of file upnpcdsobjects.cpp.
Referenced by CreateAudioBook(), CreateAudioBroadcast(), and CreateMusicTrack().
|
static |
Definition at line 531 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadTracks().
|
static |
Definition at line 573 of file upnpcdsobjects.cpp.
|
static |
Definition at line 594 of file upnpcdsobjects.cpp.
|
static |
Definition at line 613 of file upnpcdsobjects.cpp.
Referenced by CreateMovie(), CreateMusicVideoClip(), CreateVideoBroadcast(), UPnpCDSTv::LoadRecordings(), and UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 671 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSVideo::LoadVideos().
|
static |
Definition at line 689 of file upnpcdsobjects.cpp.
|
static |
Definition at line 707 of file upnpcdsobjects.cpp.
|
static |
Definition at line 727 of file upnpcdsobjects.cpp.
Referenced by CreatePhoto().
|
static |
Definition at line 752 of file upnpcdsobjects.cpp.
|
static |
Definition at line 769 of file upnpcdsobjects.cpp.
|
static |
Definition at line 791 of file upnpcdsobjects.cpp.
|
static |
Definition at line 818 of file upnpcdsobjects.cpp.
Referenced by CreateMusicAlbum(), CreatePhotoAlbum(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), and UPnpCDSTv::LoadTitles().
|
static |
Definition at line 845 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadAlbums().
|
static |
Definition at line 865 of file upnpcdsobjects.cpp.
|
static |
Definition at line 880 of file upnpcdsobjects.cpp.
Referenced by CreateMovieGenre(), and CreateMusicGenre().
|
static |
Definition at line 895 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadGenres().
|
static |
Definition at line 910 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSTv::LoadGenres(), and UPnpCDSVideo::LoadGenres().
|
static |
Definition at line 925 of file upnpcdsobjects.cpp.
|
static |
Definition at line 948 of file upnpcdsobjects.cpp.
Referenced by CreateMusicArtist().
|
static |
Definition at line 965 of file upnpcdsobjects.cpp.
Referenced by UPnpCDSMusic::LoadArtists().
|
static |
Definition at line 983 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1004 of file upnpcdsobjects.cpp.
|
static |
Definition at line 1024 of file upnpcdsobjects.cpp.
Definition at line 1039 of file upnpcdsobjects.cpp.
Referenced by toXml().
short CDSObject::m_nUpdateId {1} |
Definition at line 187 of file upnpcdsobjects.h.
Referenced by UPnpCDS::HandleBrowse().
ObjectTypes CDSObject::m_eType {OT_Container} |
Definition at line 189 of file upnpcdsobjects.h.
Referenced by AddChild(), CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sId |
Definition at line 193 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), UPnpCDSMusic::PopulateArtworkURIS(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sParentId |
Definition at line 194 of file upnpcdsobjects.h.
Referenced by AddChild(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sTitle |
Definition at line 195 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sClass |
Definition at line 196 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 197 of file upnpcdsobjects.h.
Referenced by toXml(), and UPnpCDS::UPnpCDS().
Definition at line 198 of file upnpcdsobjects.h.
Referenced by CreateContainer(), CreateItem(), toXml(), and UPnpCDS::UPnpCDS().
QString CDSObject::m_sCreator |
Definition at line 202 of file upnpcdsobjects.h.
QString CDSObject::m_sWriteStatus {"PROTECTED"} |
Definition at line 203 of file upnpcdsobjects.h.
Classes CDSObject::m_SearchClass |
Definition at line 207 of file upnpcdsobjects.h.
Classes CDSObject::m_CreateClass |
Definition at line 208 of file upnpcdsobjects.h.
Properties CDSObject::m_properties |
Definition at line 212 of file upnpcdsobjects.h.
Referenced by AddProperty(), GetProperties(), GetPropValue(), SetPropValue(), toXml(), and ~CDSObject().
CDSObjects CDSObject::m_children |
Definition at line 213 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChild(), GetChildCount(), toXml(), and ~CDSObject().
uint32_t CDSObject::m_nChildCount {0} |
Definition at line 214 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildCount(), and SetChildCount().
uint32_t CDSObject::m_nChildContainerCount {0} |
Definition at line 215 of file upnpcdsobjects.h.
Referenced by AddChild(), GetChildContainerCount(), and SetChildContainerCount().
Resources CDSObject::m_resources |
Definition at line 217 of file upnpcdsobjects.h.
Referenced by AddResource(), toXml(), and ~CDSObject().