UPnp Class Reference

#include <upnp.h>

Inheritance diagram for UPnp:

MediaRenderer MediaServer

List of all members.


Detailed Description

Definition at line 93 of file upnp.h.


Public Member Functions

 UPnp ()
virtual ~UPnp ()
void SetConfiguration (Configuration *pConfig)
bool Initialize (int nServicePort, HttpServer *pHttpServer)
bool Initialize (QStringList &sIPAddrList, int nServicePort, HttpServer *pHttpServer)
virtual void Start ()
void CleanUp (void)
UPnpDeviceRootDevice ()
HttpServerGetHttpServer ()

Static Public Member Functions

static void PerformSearch (const QString &sST)
static void AddListener (QObject *listener)
static void RemoveListener (QObject *listener)
static SSDPCacheEntriesFind (const QString &sURI)
static DeviceLocationFind (const QString &sURI, const QString &sUSN)
static UPnpDeviceDescGetDeviceDesc (QString &sURL, bool bInQtThread=TRUE)
static QString GetResultDesc (UPnPResultCode eCode)
static void FormatErrorResponse (HTTPRequest *pRequest, UPnPResultCode eCode, const QString &sMsg="")

Static Public Attributes

static Configurationg_pConfig = NULL
static UPnpDeviceDesc g_UPnpDeviceDesc
static TaskQueueg_pTaskQueue = NULL
static SSDPg_pSSDP = NULL
static SSDPCache g_SSDPCache
static QStringList g_IPAddrList

Protected Attributes

HttpServerm_pHttpServer
int m_nServicePort

Constructor & Destructor Documentation

UPnp::UPnp (  ) 

Definition at line 40 of file upnp.cpp.

UPnp::~UPnp (  )  [virtual]

Definition at line 49 of file upnp.cpp.


Member Function Documentation

void UPnp::SetConfiguration ( Configuration pConfig  ) 

bool UPnp::Initialize ( int  nServicePort,
HttpServer pHttpServer 
)

bool UPnp::Initialize ( QStringList &  sIPAddrList,
int  nServicePort,
HttpServer pHttpServer 
)

Definition at line 84 of file upnp.cpp.

void UPnp::Start ( void   )  [virtual]

void UPnp::CleanUp ( void   ) 

Definition at line 160 of file upnp.cpp.

Referenced by ~UPnp().

UPnpDevice* UPnp::RootDevice (  )  [inline]

Definition at line 124 of file upnp.h.

Referenced by MediaRenderer::MediaRenderer(), and MediaServer::MediaServer().

static void UPnp::PerformSearch ( const QString &  sST  )  [inline, static]

HttpServer* UPnp::GetHttpServer (  )  [inline]

Definition at line 132 of file upnp.h.

Referenced by main().

static void UPnp::AddListener ( QObject *  listener  )  [inline, static]

Definition at line 134 of file upnp.h.

Referenced by BackendSelect::BackendSelect().

static void UPnp::RemoveListener ( QObject *  listener  )  [inline, static]

Definition at line 135 of file upnp.h.

Referenced by BackendSelect::~BackendSelect().

SSDPCacheEntries * UPnp::Find ( const QString &  sURI  )  [static]

Definition at line 195 of file upnp.cpp.

DeviceLocation * UPnp::Find ( const QString &  sURI,
const QString &  sUSN 
) [static]

Definition at line 203 of file upnp.cpp.

UPnpDeviceDesc * UPnp::GetDeviceDesc ( QString &  sURL,
bool  bInQtThread = TRUE 
) [static]

Definition at line 212 of file upnp.cpp.

QString UPnp::GetResultDesc ( UPnPResultCode  eCode  )  [static]

Definition at line 221 of file upnp.cpp.

Referenced by FormatErrorResponse().

void UPnp::FormatErrorResponse ( HTTPRequest pRequest,
UPnPResultCode  eCode,
const QString &  sMsg = "" 
) [static]


Member Data Documentation

Reimplemented in MediaRenderer.

Definition at line 98 of file upnp.h.

Referenced by GetHttpServer(), Initialize(), MediaServer::MediaServer(), and MediaServer::~MediaServer().

int UPnp::m_nServicePort [protected]

Definition at line 99 of file upnp.h.

Referenced by Initialize().

Configuration * UPnp::g_pConfig = NULL [static]

TaskQueue * UPnp::g_pTaskQueue = NULL [static]

SSDP * UPnp::g_pSSDP = NULL [static]

Definition at line 107 of file upnp.h.

Referenced by CleanUp(), Initialize(), PerformSearch(), and Start().

QStringList UPnp::g_IPAddrList [static]

Definition at line 109 of file upnp.h.

Referenced by UPnpSearchTask::Execute(), Initialize(), and UPnpNotifyTask::SendNotifyMsg().


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

Generated on Sat Dec 18 05:16:13 2010 for MythTV by  doxygen 1.5.5