MythTV
master
|
#include <libmythupnp/upnpdevice.h>
Public Member Functions | |
UPnpDeviceDesc ()=default | |
virtual | ~UPnpDeviceDesc ()=default |
bool | Load (const QString &sFileName) |
bool | Load (const QDomDocument &xmlDevDesc) |
void | GetValidXML (const QString &sBaseAddress, int nPort, QTextStream &os, const QString &sUserAgent="") |
QString | GetValidXML (const QString &sBaseAddress, int nPort) |
QString | FindDeviceUDN (UPnpDevice *pDevice, QString sST) |
UPnpDevice * | FindDevice (const QString &sURI) |
void | toMap (InfoMap &map) const |
Static Public Member Functions | |
static UPnpDevice * | FindDevice (UPnpDevice *pDevice, const QString &sURI) |
static UPnpDeviceDesc * | Retrieve (QString &sURL) |
Public Attributes | |
UPnpDevice | m_rootDevice |
QString | m_sHostName |
QUrl | m_hostUrl |
Protected Member Functions | |
void | InternalLoad (QDomNode oNode, UPnpDevice *pCurDevice) |
void | ProcessDeviceList (const QDomNode &oListNode, UPnpDevice *pDevice) |
void | OutputDevice (QTextStream &os, UPnpDevice *pDevice, const QString &sUserAgent="") |
QString | GetHostName () const |
Static Protected Member Functions | |
static void | ProcessIconList (const QDomNode &oListNode, UPnpDevice *pDevice) |
static void | ProcessServiceList (const QDomNode &oListNode, UPnpDevice *pDevice) |
static void | SetStrValue (const QDomNode &n, QString &sValue) |
Sets sValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true. More... | |
static void | SetNumValue (const QDomNode &n, int &nValue) |
Sets nValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true. More... | |
static void | SetBoolValue (const QDomNode &n, bool &nValue) |
static QString | FormatValue (const NameValue &node) |
static QString | FormatValue (const QString &sName, const QString &sValue) |
static QString | FormatValue (const QString &sName, int nValue) |
Definition at line 151 of file upnpdevice.h.
|
default |
Referenced by Retrieve().
|
virtualdefault |
|
protected |
Definition at line 123 of file upnpdevice.cpp.
Referenced by Load(), and ProcessDeviceList().
|
staticprotected |
Definition at line 194 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
staticprotected |
Definition at line 223 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
protected |
Definition at line 257 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
protected |
Definition at line 361 of file upnpdevice.cpp.
Referenced by GetValidXML().
|
staticprotected |
Sets sValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 280 of file upnpdevice.cpp.
Referenced by InternalLoad(), ProcessIconList(), and ProcessServiceList().
|
staticprotected |
Sets nValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 293 of file upnpdevice.cpp.
Referenced by ProcessIconList().
|
staticprotected |
Definition at line 304 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
staticprotected |
Definition at line 519 of file upnpdevice.cpp.
Referenced by OutputDevice().
|
staticprotected |
Definition at line 538 of file upnpdevice.cpp.
|
staticprotected |
Definition at line 551 of file upnpdevice.cpp.
|
protected |
Definition at line 685 of file upnpdevice.cpp.
Referenced by OutputDevice().
bool UPnpDeviceDesc::Load | ( | const QString & | sFileName | ) |
Definition at line 45 of file upnpdevice.cpp.
Referenced by MediaServer::Init(), and Retrieve().
bool UPnpDeviceDesc::Load | ( | const QDomDocument & | xmlDevDesc | ) |
Definition at line 106 of file upnpdevice.cpp.
void UPnpDeviceDesc::GetValidXML | ( | const QString & | sBaseAddress, |
int | nPort, | ||
QTextStream & | os, | ||
const QString & | sUserAgent = "" |
||
) |
Definition at line 336 of file upnpdevice.cpp.
Referenced by SSDPExtension::GetDeviceDesc(), and GetValidXML().
QString UPnpDeviceDesc::GetValidXML | ( | const QString & | sBaseAddress, |
int | nPort | ||
) |
Definition at line 322 of file upnpdevice.cpp.
QString UPnpDeviceDesc::FindDeviceUDN | ( | UPnpDevice * | pDevice, |
QString | sST | ||
) |
Definition at line 560 of file upnpdevice.cpp.
Referenced by SSDP::ProcessSearchRequest().
UPnpDevice * UPnpDeviceDesc::FindDevice | ( | const QString & | sURI | ) |
Definition at line 599 of file upnpdevice.cpp.
Referenced by FindDevice().
|
static |
Definition at line 608 of file upnpdevice.cpp.
|
static |
Definition at line 634 of file upnpdevice.cpp.
Referenced by UPnp::GetDeviceDesc(), and DeviceLocation::GetDeviceDesc().
|
inline |
Definition at line 199 of file upnpdevice.h.
Referenced by DeviceLocation::GetDeviceDetail().
UPnpDevice UPnpDeviceDesc::m_rootDevice |
Definition at line 155 of file upnpdevice.h.
Referenced by SatIP::doUPNPsearch(), UPnpSearchTask::Execute(), UPnpNotifyTask::Execute(), FindDevice(), DeviceLocation::GetFriendlyName(), DeviceLocation::GetNameAndDetails(), GetValidXML(), Load(), MediaRenderer::MediaRenderer(), DeviceLocation::NeedSecurityPin(), OutputDevice(), and UPnp::RootDevice().
QString UPnpDeviceDesc::m_sHostName |
Definition at line 156 of file upnpdevice.h.
Referenced by DeviceLocation::GetFriendlyName(), GetHostName(), DeviceLocation::GetNameAndDetails(), and Retrieve().
QUrl UPnpDeviceDesc::m_hostUrl |
Definition at line 157 of file upnpdevice.h.
Referenced by SatIP::doUPNPsearch(), and Retrieve().