MythTV  0.28pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
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 QString &sName, const QString &sValue)
 
QString FormatValue (const QString &sName, int nValue)
 
QString GetHostName ()
 

Detailed Description

Definition at line 143 of file upnpdevice.h.

Constructor & Destructor Documentation

UPnpDeviceDesc::UPnpDeviceDesc ( )

Definition at line 42 of file upnpdevice.cpp.

Referenced by Retrieve().

UPnpDeviceDesc::~UPnpDeviceDesc ( )
virtual

Definition at line 51 of file upnpdevice.cpp.

Member Function Documentation

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 366 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 541 of file upnpdevice.cpp.

Referenced by OutputDevice().

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

Definition at line 554 of file upnpdevice.cpp.

QString UPnpDeviceDesc::GetHostName ( void  )
protected

Definition at line 681 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 563 of file upnpdevice.cpp.

Referenced by SSDP::ProcessSearchRequest().

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

Definition at line 601 of file upnpdevice.cpp.

Referenced by FindDevice().

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

Definition at line 610 of file upnpdevice.cpp.

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

Definition at line 636 of file upnpdevice.cpp.

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

void UPnpDeviceDesc::toMap ( InfoMap map)
inline

Definition at line 190 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 149 of file upnpdevice.h.

Referenced by Retrieve().


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