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

#include <upnpcdsvideo.h>

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

Public Member Functions

 UPnpCDSVideo ()
 
virtual ~UPnpCDSVideo ()=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, IDTokenMap tokens, QString currentToken) override
 Fetch just the metadata for the item identified in the request. More...
 
bool LoadChildren (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, IDTokenMap tokens, QString currentToken) override
 Fetch the children of the container identified in the request. More...
 
- Protected Member Functions inherited from UPnpCDSExtension
QString RemoveToken (const QString &sToken, const QString &sStr, int num)
 
virtual int GetRootCount ()
 
virtual int GetRootContainerCount ()
 
IDTokenMap TokenizeIDString (const QString &Id) const
 Split the 'Id' String up into tokens for handling by each extension. More...
 
IDToken GetCurrentToken (const QString &Id) const
 Split the 'Id' String up into tokens and return the last (current) token. More...
 
QString CreateIDString (const QString &RequestId, const QString &Name, int Value)
 
QString CreateIDString (const QString &RequestId, const QString &Name, const QString &Value)
 

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 LoadGenres (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
bool LoadVideos (const UPnpCDSRequest *pRequest, UPnpCDSExtensionResults *pResults, const IDTokenMap &tokens)
 
void PopulateArtworkURIS (CDSObject *pItem, int nVidID, const QUrl &URIBase)
 
QString BuildWhereClause (QStringList clauses, IDTokenMap tokens)
 
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
 
- 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 27 of file upnpcdsvideo.cpp.

◆ ~UPnpCDSVideo()

virtual UPnpCDSVideo::~UPnpCDSVideo ( )
virtualdefault

Member Function Documentation

◆ IsBrowseRequestForUs()

bool UPnpCDSVideo::IsBrowseRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 148 of file upnpcdsvideo.cpp.

◆ IsSearchRequestForUs()

bool UPnpCDSVideo::IsSearchRequestForUs ( UPnpCDSRequest pRequest)
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 203 of file upnpcdsvideo.cpp.

◆ CreateRoot()

void UPnpCDSVideo::CreateRoot ( )
overrideprotectedvirtual

Reimplemented from UPnpCDSExtension.

Definition at line 43 of file upnpcdsvideo.cpp.

◆ LoadMetadata()

bool UPnpCDSVideo::LoadMetadata ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
IDTokenMap  tokens,
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 257 of file upnpcdsvideo.cpp.

◆ LoadChildren()

bool UPnpCDSVideo::LoadChildren ( const UPnpCDSRequest pRequest,
UPnpCDSExtensionResults pResults,
IDTokenMap  tokens,
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 321 of file upnpcdsvideo.cpp.

◆ LoadSeries()

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

Definition at line 369 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 445 of file upnpcdsvideo.cpp.

Referenced by LoadChildren(), and LoadMetadata().

◆ LoadMovies()

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

Definition at line 522 of file upnpcdsvideo.cpp.

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

◆ LoadGenres()

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

Definition at line 535 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 607 of file upnpcdsvideo.cpp.

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

◆ PopulateArtworkURIS()

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

Definition at line 855 of file upnpcdsvideo.cpp.

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

◆ BuildWhereClause()

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

Definition at line 971 of file upnpcdsvideo.cpp.

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

◆ BindValues()

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

Definition at line 994 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: