MythTV  master
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
UPnpCDSTv Class Reference

#include <upnpcdstv.h>

Inheritance diagram for UPnpCDSTv:
Inheritance graph
[legend]
Collaboration diagram for UPnpCDSTv:
Collaboration graph
[legend]

Public Member Functions

 UPnpCDSTv ()
 
virtual ~UPnpCDSTv ()=default
 
- Public Member Functions inherited from UPnpCDSExtension
 UPnpCDSExtension (QString sName, QString sExtensionId, QString sClass)
 
virtual CDSObjectGetRoot ()
 
virtual ~UPnpCDSExtension ()
 
virtual UPnpCDSExtensionResultsBrowse (UPnpCDSRequest *pRequest)
 
virtual UPnpCDSExtensionResultsSearch (UPnpCDSRequest *pRequest)
 
virtual QString GetSearchCapabilities ()
 
virtual QString GetSortCapabilities ()
 
virtual CDSShortCutList GetShortCuts ()
 

Protected Member Functions

bool IsBrowseRequestForUs (UPnpCDSRequest *pRequest) override
 
bool IsSearchRequestForUs (UPnpCDSRequest *pRequest) override
 
void CreateRoot () override
 
bool LoadMetadata (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens, const QString &currentToken) override
 Fetch just the metadata for the item identified in the request. More...
 
bool LoadChildren (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens, const QString &currentToken) override
 Fetch the children of the container identified in the request. More...
 
- Protected Member Functions inherited from UPnpCDSExtension
virtual int GetRootCount ()
 
virtual int GetRootContainerCount ()
 

Private Member Functions

bool LoadRecordings (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, IDTokenMap tokens)
 
bool LoadTitles (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadDates (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadGenres (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadChannels (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadRecGroups (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadMovies (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, IDTokenMap tokens)
 

Static Private Member Functions

static void PopulateArtworkURIS (CDSObject *pItem, const QString &sInetRef, int nSeason, const QUrl &URIBase)
 
static QString BuildWhereClause (QStringList clauses, IDTokenMap tokens)
 
static void BindValues (MSqlQuery &query, IDTokenMap tokens)
 

Private Attributes

QUrl m_URIBase
 
QStringMap m_mapBackendIp
 
QMap< QString, int > m_mapBackendPort
 

Additional Inherited Members

- Public Attributes inherited from UPnpCDSExtension
QString m_sExtensionId
 
QString m_sName
 
QString m_sClass
 
CDSShortCutList m_shortcuts
 
- Static Protected Member Functions inherited from UPnpCDSExtension
static QString RemoveToken (const QString &sToken, const QString &sStr, int num)
 
static IDTokenMap TokenizeIDString (const QString &Id)
 Split the 'Id' String up into tokens for handling by each extension. More...
 
static IDToken GetCurrentToken (const QString &Id)
 Split the 'Id' String up into tokens and return the last (current) token. More...
 
static QString CreateIDString (const QString &RequestId, const QString &Name, int Value)
 
static QString CreateIDString (const QString &RequestId, const QString &Name, const QString &Value)
 
- Protected Attributes inherited from UPnpCDSExtension
CDSObjectm_pRoot {nullptr}
 

Detailed Description

Definition at line 20 of file upnpcdstv.h.

Constructor & Destructor Documentation

◆ UPnpCDSTv()

UPnpCDSTv::UPnpCDSTv ( )

Definition at line 133 of file upnpcdstv.cpp.

◆ ~UPnpCDSTv()

virtual UPnpCDSTv::~UPnpCDSTv ( )
virtualdefault

Member Function Documentation

◆ IsBrowseRequestForUs()

bool UPnpCDSTv::IsBrowseRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 411 of file upnpcdstv.cpp.

◆ IsSearchRequestForUs()

bool UPnpCDSTv::IsSearchRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 457 of file upnpcdstv.cpp.

◆ CreateRoot()

void UPnpCDSTv::CreateRoot ( )
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 147 of file upnpcdstv.cpp.

◆ LoadMetadata()

bool UPnpCDSTv::LoadMetadata ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens,
const QString &  currentToken 
)
overrideprotectedvirtual

Fetch just the metadata for the item identified in the request.

This is the 'BrowseMetadata' request type.

The ID may refer to a container or an object.

  • pRequest The request object to read the id from
  • pResults The result object to write into
Returns
true if we could load the metadata

Reimplemented from UPnpCDSExtension.

Definition at line 279 of file upnpcdstv.cpp.

◆ LoadChildren()

bool UPnpCDSTv::LoadChildren ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens,
const QString &  currentToken 
)
overrideprotectedvirtual

Fetch the children of the container identified in the request.

This is the 'BrowseDirectChildren' request type.

The ID may only refer to a container.

  • pRequest The request object to read the id from
  • pResults The result object to write into
Returns
true if we could load the children

Reimplemented from UPnpCDSExtension.

Definition at line 351 of file upnpcdstv.cpp.

◆ LoadRecordings()

bool UPnpCDSTv::LoadRecordings ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
IDTokenMap  tokens 
)
private

Definition at line 927 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), LoadMetadata(), LoadMovies(), and LoadTitles().

◆ LoadTitles()

bool UPnpCDSTv::LoadTitles ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 518 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ LoadDates()

bool UPnpCDSTv::LoadDates ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 605 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ LoadGenres()

bool UPnpCDSTv::LoadGenres ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 672 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ LoadChannels()

bool UPnpCDSTv::LoadChannels ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 815 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ LoadRecGroups()

bool UPnpCDSTv::LoadRecGroups ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 743 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ LoadMovies()

bool UPnpCDSTv::LoadMovies ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
IDTokenMap  tokens 
)
private

Definition at line 890 of file upnpcdstv.cpp.

Referenced by CreateRoot(), LoadChildren(), and LoadMetadata().

◆ PopulateArtworkURIS()

void UPnpCDSTv::PopulateArtworkURIS ( CDSObject pItem,
const QString &  sInetRef,
int  nSeason,
const QUrl &  URIBase 
)
staticprivate

Definition at line 1323 of file upnpcdstv.cpp.

Referenced by LoadRecordings(), and LoadTitles().

◆ BuildWhereClause()

QString UPnpCDSTv::BuildWhereClause ( QStringList  clauses,
IDTokenMap  tokens 
)
staticprivate

◆ BindValues()

void UPnpCDSTv::BindValues ( MSqlQuery query,
IDTokenMap  tokens 
)
staticprivate

Member Data Documentation

◆ m_URIBase

QUrl UPnpCDSTv::m_URIBase
private

Definition at line 81 of file upnpcdstv.h.

Referenced by LoadTitles(), and UPnpCDSTv().

◆ m_mapBackendIp

QStringMap UPnpCDSTv::m_mapBackendIp
private

Definition at line 83 of file upnpcdstv.h.

Referenced by LoadRecordings().

◆ m_mapBackendPort

QMap<QString, int> UPnpCDSTv::m_mapBackendPort
private

Definition at line 84 of file upnpcdstv.h.

Referenced by LoadRecordings().


The documentation for this class was generated from the following files: