|
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 154 of file upnpdevice.h.
|
default |
Referenced by Retrieve().
|
virtualdefault |
| UPnpDevice * UPnpDeviceDesc::FindDevice | ( | const QString & | sURI | ) |
Definition at line 596 of file upnpdevice.cpp.
Referenced by FindDevice().
|
static |
Definition at line 605 of file upnpdevice.cpp.
| QString UPnpDeviceDesc::FindDeviceUDN | ( | UPnpDevice * | pDevice, |
| QString | sST | ||
| ) |
Definition at line 557 of file upnpdevice.cpp.
Referenced by FindDeviceUDN(), and SSDP::ProcessSearchRequest().
|
staticprotected |
Definition at line 516 of file upnpdevice.cpp.
Referenced by OutputDevice().
|
staticprotected |
Definition at line 535 of file upnpdevice.cpp.
|
staticprotected |
Definition at line 548 of file upnpdevice.cpp.
|
protected |
Definition at line 682 of file upnpdevice.cpp.
Referenced by OutputDevice().
| QString UPnpDeviceDesc::GetValidXML | ( | const QString & | sBaseAddress, |
| int | nPort | ||
| ) |
Definition at line 319 of file upnpdevice.cpp.
| void UPnpDeviceDesc::GetValidXML | ( | const QString & | sBaseAddress, |
| int | nPort, | ||
| QTextStream & | os, | ||
| const QString & | sUserAgent = "" |
||
| ) |
Definition at line 333 of file upnpdevice.cpp.
Referenced by SSDPExtension::GetDeviceDesc(), and GetValidXML().
|
protected |
Definition at line 120 of file upnpdevice.cpp.
Referenced by Load(), and ProcessDeviceList().
| bool UPnpDeviceDesc::Load | ( | const QDomDocument & | xmlDevDesc | ) |
Definition at line 103 of file upnpdevice.cpp.
| bool UPnpDeviceDesc::Load | ( | const QString & | sFileName | ) |
Definition at line 42 of file upnpdevice.cpp.
Referenced by MediaServer::Init(), Load(), and Retrieve().
|
protected |
Definition at line 358 of file upnpdevice.cpp.
Referenced by GetValidXML(), and OutputDevice().
|
protected |
Definition at line 254 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
staticprotected |
Definition at line 191 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
staticprotected |
Definition at line 220 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
static |
Definition at line 631 of file upnpdevice.cpp.
Referenced by UPnp::GetDeviceDesc(), and DeviceLocation::GetDeviceDesc().
|
staticprotected |
Definition at line 301 of file upnpdevice.cpp.
Referenced by InternalLoad().
|
staticprotected |
Sets nValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 290 of file upnpdevice.cpp.
Referenced by ProcessIconList().
|
staticprotected |
Sets sValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 277 of file upnpdevice.cpp.
Referenced by InternalLoad(), ProcessIconList(), and ProcessServiceList().
|
inline |
Definition at line 202 of file upnpdevice.h.
Referenced by DeviceLocation::GetDeviceDetail().
| QUrl UPnpDeviceDesc::m_hostUrl |
Definition at line 160 of file upnpdevice.h.
Referenced by SatIP::doUPNPsearch(), and Retrieve().
| UPnpDevice UPnpDeviceDesc::m_rootDevice |
Definition at line 158 of file upnpdevice.h.
Referenced by SatIP::doUPNPsearch(), UPnpNotifyTask::Execute(), UPnpSearchTask::Execute(), FindDevice(), DeviceLocation::GetFriendlyName(), DeviceLocation::GetNameAndDetails(), GetValidXML(), Load(), MediaRenderer::MediaRenderer(), DeviceLocation::NeedSecurityPin(), OutputDevice(), and UPnp::RootDevice().
| QString UPnpDeviceDesc::m_sHostName |
Definition at line 159 of file upnpdevice.h.
Referenced by DeviceLocation::GetFriendlyName(), GetHostName(), DeviceLocation::GetNameAndDetails(), and Retrieve().