|
MythTV
0.26-pre
|
#include <upnpdevice.h>
Public Member Functions | |
| UPnpDeviceDesc () | |
| virtual | ~UPnpDeviceDesc () |
| 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 (QHash< QString, QString > &map) |
Static Public Member Functions | |
| static UPnpDevice * | FindDevice (UPnpDevice *pDevice, const QString &sURI) |
| static UPnpDeviceDesc * | Retrieve (QString &sURL, bool bInQtThread=true) |
Public Attributes | |
| UPnpDevice | m_rootDevice |
| QString | m_sHostName |
| QUrl | m_HostUrl |
Protected Member Functions | |
| void | _InternalLoad (QDomNode oNode, UPnpDevice *pCurDevice) |
| void | ProcessIconList (QDomNode oListNode, UPnpDevice *pDevice) |
| void | ProcessServiceList (QDomNode oListNode, UPnpDevice *pDevice) |
| void | ProcessDeviceList (QDomNode oListNode, UPnpDevice *pDevice) |
| void | OutputDevice (QTextStream &os, UPnpDevice *pDevice, const QString &sUserAgent="") |
| 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. | |
| 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. | |
| void | SetBoolValue (const QDomNode &n, bool &nValue) |
| QString | FormatValue (const QString &sName, const QString &sValue) |
| QString | FormatValue (const QString &sName, int nValue) |
| QString | GetHostName () |
Definition at line 143 of file upnpdevice.h.
Definition at line 42 of file upnpdevice.cpp.
Referenced by Retrieve().
| UPnpDeviceDesc::~UPnpDeviceDesc | ( | ) | [virtual] |
Definition at line 51 of file upnpdevice.cpp.
| void UPnpDeviceDesc::_InternalLoad | ( | QDomNode | oNode, |
| UPnpDevice * | pCurDevice | ||
| ) | [protected] |
Definition at line 123 of file upnpdevice.cpp.
Referenced by Load(), and ProcessDeviceList().
| void UPnpDeviceDesc::ProcessIconList | ( | QDomNode | oListNode, |
| UPnpDevice * | pDevice | ||
| ) | [protected] |
Definition at line 186 of file upnpdevice.cpp.
Referenced by _InternalLoad().
| void UPnpDeviceDesc::ProcessServiceList | ( | QDomNode | oListNode, |
| UPnpDevice * | pDevice | ||
| ) | [protected] |
Definition at line 215 of file upnpdevice.cpp.
Referenced by _InternalLoad().
| void UPnpDeviceDesc::ProcessDeviceList | ( | QDomNode | oListNode, |
| UPnpDevice * | pDevice | ||
| ) | [protected] |
Definition at line 249 of file upnpdevice.cpp.
Referenced by _InternalLoad().
| void UPnpDeviceDesc::OutputDevice | ( | QTextStream & | os, |
| UPnpDevice * | pDevice, | ||
| const QString & | sUserAgent = "" |
||
| ) | [protected] |
Definition at line 368 of file upnpdevice.cpp.
Referenced by GetValidXML().
| void UPnpDeviceDesc::SetStrValue | ( | const QDomNode & | n, |
| QString & | sValue | ||
| ) | [protected] |
Sets sValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 272 of file upnpdevice.cpp.
Referenced by _InternalLoad(), ProcessIconList(), and ProcessServiceList().
| void UPnpDeviceDesc::SetNumValue | ( | const QDomNode & | n, |
| int & | nValue | ||
| ) | [protected] |
Sets nValue param to n.firstChild().toText().nodeValue(), iff neither n.isNull() nor n.firstChild().toText().isNull() is true.
Definition at line 285 of file upnpdevice.cpp.
Referenced by ProcessIconList().
| void UPnpDeviceDesc::SetBoolValue | ( | const QDomNode & | n, |
| bool & | nValue | ||
| ) | [protected] |
Definition at line 296 of file upnpdevice.cpp.
Referenced by _InternalLoad().
| QString UPnpDeviceDesc::FormatValue | ( | const QString & | sName, |
| const QString & | sValue | ||
| ) | [protected] |
Definition at line 543 of file upnpdevice.cpp.
Referenced by OutputDevice().
| QString UPnpDeviceDesc::FormatValue | ( | const QString & | sName, |
| int | nValue | ||
| ) | [protected] |
Definition at line 556 of file upnpdevice.cpp.
| QString UPnpDeviceDesc::GetHostName | ( | void | ) | [protected] |
Definition at line 685 of file upnpdevice.cpp.
Referenced by OutputDevice().
| bool UPnpDeviceDesc::Load | ( | const QString & | sFileName | ) |
Definition at line 63 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 328 of file upnpdevice.cpp.
Referenced by SSDPExtension::GetDeviceDesc(), and GetValidXML().
| QString UPnpDeviceDesc::GetValidXML | ( | const QString & | sBaseAddress, |
| int | nPort | ||
| ) |
Definition at line 314 of file upnpdevice.cpp.
| QString UPnpDeviceDesc::FindDeviceUDN | ( | UPnpDevice * | pDevice, |
| QString | sST | ||
| ) |
Definition at line 565 of file upnpdevice.cpp.
Referenced by SSDP::ProcessSearchRequest().
| UPnpDevice * UPnpDeviceDesc::FindDevice | ( | const QString & | sURI | ) |
Definition at line 603 of file upnpdevice.cpp.
Referenced by FindDevice().
| UPnpDevice * UPnpDeviceDesc::FindDevice | ( | UPnpDevice * | pDevice, |
| const QString & | sURI | ||
| ) | [static] |
Definition at line 612 of file upnpdevice.cpp.
| UPnpDeviceDesc * UPnpDeviceDesc::Retrieve | ( | QString & | sURL, |
| bool | bInQtThread = true |
||
| ) | [static] |
Definition at line 638 of file upnpdevice.cpp.
Referenced by UPnp::GetDeviceDesc(), and DeviceLocation::GetDeviceDesc().
| void UPnpDeviceDesc::toMap | ( | QHash< QString, QString > & | map | ) | [inline] |
Definition at line 190 of file upnpdevice.h.
Referenced by DeviceLocation::GetDeviceDetail().
Definition at line 147 of file upnpdevice.h.
Referenced by UPnpSearchTask::Execute(), UPnpNotifyTask::Execute(), FindDevice(), DeviceLocation::GetFriendlyName(), DeviceLocation::GetNameAndDetails(), GetValidXML(), Load(), MediaRenderer::MediaRenderer(), DeviceLocation::NeedSecurityPin(), and OutputDevice().
| QString UPnpDeviceDesc::m_sHostName |
Definition at line 148 of file upnpdevice.h.
Referenced by DeviceLocation::GetFriendlyName(), GetHostName(), DeviceLocation::GetNameAndDetails(), and Retrieve().
Definition at line 149 of file upnpdevice.h.
Referenced by Retrieve().
1.7.6.1