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

#include <mythbackend/upnpcdsvideo.h>

Inheritance diagram for UPnpCDSVideo:
[legend]
Collaboration diagram for UPnpCDSVideo:
[legend]

Public Member Functions

 UPnpCDSVideo ()
 
 ~UPnpCDSVideo () override=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 LoadSeries (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadSeasons (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadMovies (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, IDTokenMap tokens)
 
bool LoadVideos (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 

Static Private Member Functions

static bool LoadGenres (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
static void PopulateArtworkURIS (CDSObject *pItem, int nVidID, const QUrl &URIBase)
 
static QString BuildWhereClause (QStringList clauses, IDTokenMap tokens)
 
static void BindValues (MSqlQuery &query, IDTokenMap tokens)
 

Private Attributes

QStringMap m_mapBackendIp
 
QMap< QString, int > m_mapBackendPort
 
QUrl m_uriBase
 

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 23 of file upnpcdsvideo.h.

Constructor & Destructor Documentation

◆ UPnpCDSVideo()

UPnpCDSVideo::UPnpCDSVideo ( )

Definition at line 29 of file upnpcdsvideo.cpp.

◆ ~UPnpCDSVideo()

UPnpCDSVideo::~UPnpCDSVideo ( )
overridedefault

Member Function Documentation

◆ IsBrowseRequestForUs()

bool UPnpCDSVideo::IsBrowseRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 149 of file upnpcdsvideo.cpp.

◆ IsSearchRequestForUs()

bool UPnpCDSVideo::IsSearchRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 204 of file upnpcdsvideo.cpp.

◆ CreateRoot()

void UPnpCDSVideo::CreateRoot ( )
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 45 of file upnpcdsvideo.cpp.

◆ LoadMetadata()

bool UPnpCDSVideo::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 258 of file upnpcdsvideo.cpp.

◆ LoadChildren()

bool UPnpCDSVideo::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 324 of file upnpcdsvideo.cpp.

◆ LoadSeries()

bool UPnpCDSVideo::LoadSeries ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 372 of file upnpcdsvideo.cpp.

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

◆ LoadSeasons()

bool UPnpCDSVideo::LoadSeasons ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 448 of file upnpcdsvideo.cpp.

Referenced by LoadChildren(), and LoadMetadata().

◆ LoadMovies()

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

Definition at line 525 of file upnpcdsvideo.cpp.

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

◆ LoadGenres()

bool UPnpCDSVideo::LoadGenres ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
staticprivate

Definition at line 538 of file upnpcdsvideo.cpp.

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

◆ LoadVideos()

bool UPnpCDSVideo::LoadVideos ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
const IDTokenMap tokens 
)
private

Definition at line 610 of file upnpcdsvideo.cpp.

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

◆ PopulateArtworkURIS()

void UPnpCDSVideo::PopulateArtworkURIS ( CDSObject pItem,
int  nVidID,
const QUrl &  URIBase 
)
staticprivate

Definition at line 856 of file upnpcdsvideo.cpp.

Referenced by LoadSeasons(), LoadSeries(), and LoadVideos().

◆ BuildWhereClause()

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

Definition at line 972 of file upnpcdsvideo.cpp.

Referenced by LoadGenres(), LoadSeasons(), LoadSeries(), and LoadVideos().

◆ BindValues()

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

Definition at line 995 of file upnpcdsvideo.cpp.

Referenced by LoadGenres(), LoadSeasons(), LoadSeries(), and LoadVideos().

Member Data Documentation

◆ m_mapBackendIp

QStringMap UPnpCDSVideo::m_mapBackendIp
private

Definition at line 76 of file upnpcdsvideo.h.

Referenced by LoadVideos().

◆ m_mapBackendPort

QMap<QString, int> UPnpCDSVideo::m_mapBackendPort
private

Definition at line 77 of file upnpcdsvideo.h.

Referenced by LoadVideos().

◆ m_uriBase

QUrl UPnpCDSVideo::m_uriBase
private

Definition at line 79 of file upnpcdsvideo.h.

Referenced by LoadSeasons(), LoadSeries(), and UPnpCDSVideo().


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