MythTV  0.28pre
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
UPnpDeviceDesc Class Reference

#include <upnpdevice.h>

Collaboration diagram for UPnpDeviceDesc:
Collaboration graph
[legend]

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)
 
UPnpDeviceFindDevice (const QString &sURI)
 
void toMap (InfoMap &map)
 

Static Public Member Functions

static UPnpDeviceFindDevice (UPnpDevice *pDevice, const QString &sURI)
 
static UPnpDeviceDescRetrieve (QString &sURL)
 

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. More...
 
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...
 
void SetBoolValue (const QDomNode &n, bool &nValue)
 
QString FormatValue (const NameValue &node)
 
QString FormatValue (const QString &sName, const QString &sValue)
 
QString FormatValue (const QString &sName, int nValue)
 
QString GetHostName ()
 

Detailed Description

Definition at line 146 of file upnpdevice.h.

Constructor & Destructor Documentation

UPnpDeviceDesc::UPnpDeviceDesc ( )

Definition at line 43 of file upnpdevice.cpp.

Referenced by Retrieve().

UPnpDeviceDesc::~UPnpDeviceDesc ( )
virtual

Definition at line 52 of file upnpdevice.cpp.

Member Function Documentation

void UPnpDeviceDesc::_InternalLoad ( QDomNode  oNode,
UPnpDevice pCurDevice 
)
protected

Definition at line 124 of file upnpdevice.cpp.

Referenced by Load(), and ProcessDeviceList().

void UPnpDeviceDesc::ProcessIconList ( QDomNode  oListNode,
UPnpDevice pDevice 
)
protected

Definition at line 195 of file upnpdevice.cpp.

Referenced by _InternalLoad().

void UPnpDeviceDesc::ProcessServiceList ( QDomNode  oListNode,
UPnpDevice pDevice 
)
protected

Definition at line 224 of file upnpdevice.cpp.

Referenced by _InternalLoad().

void UPnpDeviceDesc::ProcessDeviceList ( QDomNode  oListNode,
UPnpDevice pDevice 
)
protected

Definition at line 258 of file upnpdevice.cpp.

Referenced by _InternalLoad().

void UPnpDeviceDesc::OutputDevice ( QTextStream &  os,
UPnpDevice pDevice,
const QString &  sUserAgent = "" 
)
protected

Definition at line 375 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 281 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 294 of file upnpdevice.cpp.

Referenced by ProcessIconList().

void UPnpDeviceDesc::SetBoolValue ( const QDomNode &  n,
bool nValue 
)
protected

Definition at line 305 of file upnpdevice.cpp.

Referenced by _InternalLoad().

QString UPnpDeviceDesc::FormatValue ( const NameValue node)
protected

Definition at line 537 of file upnpdevice.cpp.

Referenced by OutputDevice().

QString UPnpDeviceDesc::FormatValue ( const QString &  sName,
const QString &  sValue 
)
protected

Definition at line 556 of file upnpdevice.cpp.

QString UPnpDeviceDesc::FormatValue ( const QString &  sName,
int  nValue 
)
protected

Definition at line 569 of file upnpdevice.cpp.

QString UPnpDeviceDesc::GetHostName ( void  )
protected

Definition at line 699 of file upnpdevice.cpp.

Referenced by OutputDevice().

bool UPnpDeviceDesc::Load ( const QString &  sFileName)

Definition at line 64 of file upnpdevice.cpp.

Referenced by MediaServer::Init(), and Retrieve().

bool UPnpDeviceDesc::Load ( const QDomDocument &  xmlDevDesc)

Definition at line 107 of file upnpdevice.cpp.

void UPnpDeviceDesc::GetValidXML ( const QString &  sBaseAddress,
int  nPort,
QTextStream &  os,
const QString &  sUserAgent = "" 
)

Definition at line 337 of file upnpdevice.cpp.

Referenced by SSDPExtension::GetDeviceDesc(), and GetValidXML().

QString UPnpDeviceDesc::GetValidXML ( const QString &  sBaseAddress,
int  nPort 
)

Definition at line 323 of file upnpdevice.cpp.

QString UPnpDeviceDesc::FindDeviceUDN ( UPnpDevice pDevice,
QString  sST 
)

Definition at line 578 of file upnpdevice.cpp.

Referenced by SSDP::ProcessSearchRequest().

UPnpDevice * UPnpDeviceDesc::FindDevice ( const QString &  sURI)

Definition at line 618 of file upnpdevice.cpp.

Referenced by FindDevice().

UPnpDevice * UPnpDeviceDesc::FindDevice ( UPnpDevice pDevice,
const QString &  sURI 
)
static

Definition at line 627 of file upnpdevice.cpp.

UPnpDeviceDesc * UPnpDeviceDesc::Retrieve ( QString &  sURL)
static

Definition at line 654 of file upnpdevice.cpp.

Referenced by UPnp::GetDeviceDesc(), and DeviceLocation::GetDeviceDesc().

void UPnpDeviceDesc::toMap ( InfoMap map)
inline

Definition at line 194 of file upnpdevice.h.

Referenced by DeviceLocation::GetDeviceDetail().

Member Data Documentation

UPnpDevice UPnpDeviceDesc::m_rootDevice
QString UPnpDeviceDesc::m_sHostName
QUrl UPnpDeviceDesc::m_HostUrl

Definition at line 152 of file upnpdevice.h.

Referenced by VBox::doUPNPSearch(), and Retrieve().


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