#include <upnp.h>
Public Member Functions | |
| UPnp () | |
| virtual | ~UPnp () |
| bool | Initialize (int nServicePort, HttpServer *pHttpServer) |
| bool | Initialize (QStringList &sIPAddrList, int nServicePort, HttpServer *pHttpServer) |
| virtual void | Start () |
| void | CleanUp () |
| UPnpDevice * | RootDevice () |
| HttpServer * | GetHttpServer () |
Static Public Member Functions | |
| static void | SetConfiguration (Configuration *pConfig) |
| static Configuration * | GetConfiguration () |
| static UPnpDeviceDesc * | GetDeviceDesc (QString &sURL, bool bInQtThread=true) |
| static QString | GetResultDesc (UPnPResultCode eCode) |
| static void | FormatErrorResponse (HTTPRequest *pRequest, UPnPResultCode eCode, const QString &sMsg="") |
| static void | FormatRedirectResponse (HTTPRequest *pRequest, const QString &hostName) |
Static Public Attributes | |
| static UPnpDeviceDesc | g_UPnpDeviceDesc |
| static QStringList | g_IPAddrList |
Protected Attributes | |
| HttpServer * | m_pHttpServer |
| int | m_nServicePort |
Static Protected Attributes | |
| static Configuration * | g_pConfig = NULL |
Definition at line 94 of file upnp.h.
| void UPnp::SetConfiguration | ( | Configuration * | pConfig | ) | [static] |
Definition at line 58 of file upnp.cpp.
Referenced by MediaRenderer::MediaRenderer(), and MediaServer::MediaServer().
| Configuration * UPnp::GetConfiguration | ( | ) | [static] |
Definition at line 70 of file upnp.cpp.
Referenced by HTTPRequest::Authenticated(), UPnpDeviceDesc::GetHostName(), HttpWorker::HttpWorker(), HTTPRequest::IsUrlProtected(), LookupUDN(), MMulticastSocketDevice::MMulticastSocketDevice(), MythFEXML::MythFEXML(), UPnpDeviceDesc::OutputDevice(), SSDP::SSDP(), SSDPCacheTask::SSDPCacheTask(), SSDPExtension::SSDPExtension(), UPnpCDS::UPnpCDS(), UPnpCMGR::UPnpCMGR(), UPnpMSRR::UPnpMSRR(), UPnpNotifyTask::UPnpNotifyTask(), and UPnpSearchTask::UPnpSearchTask().
| bool UPnp::Initialize | ( | int | nServicePort, | |
| HttpServer * | pHttpServer | |||
| ) |
Definition at line 85 of file upnp.cpp.
Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().
| bool UPnp::Initialize | ( | QStringList & | sIPAddrList, | |
| int | nServicePort, | |||
| HttpServer * | pHttpServer | |||
| ) |
| void UPnp::Start | ( | void | ) | [virtual] |
Definition at line 135 of file upnp.cpp.
Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().
| UPnpDevice* UPnp::RootDevice | ( | ) | [inline] |
Definition at line 123 of file upnp.h.
Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().
| HttpServer* UPnp::GetHttpServer | ( | ) | [inline] |
Definition at line 125 of file upnp.h.
Referenced by run_backend().
| UPnpDeviceDesc * UPnp::GetDeviceDesc | ( | QString & | sURL, | |
| bool | bInQtThread = true | |||
| ) | [static] |
| QString UPnp::GetResultDesc | ( | UPnPResultCode | eCode | ) | [static] |
Definition at line 179 of file upnp.cpp.
Referenced by FormatErrorResponse().
| void UPnp::FormatErrorResponse | ( | HTTPRequest * | pRequest, | |
| UPnPResultCode | eCode, | |||
| const QString & | sMsg = "" | |||
| ) | [static] |
Definition at line 239 of file upnp.cpp.
Referenced by ServiceHost::FormatResponse(), UPnpCDS::HandleBrowse(), UPnpCMGR::HandleGetCurrentConnectionInfo(), UPnpCDS::HandleSearch(), UPnpMSRR::ProcessRequest(), UPnpCMGR::ProcessRequest(), UPnpCDS::ProcessRequest(), ServiceHost::ProcessRequest(), MythFEXML::ProcessRequest(), and Eventing::ProcessRequest().
| void UPnp::FormatRedirectResponse | ( | HTTPRequest * | pRequest, | |
| const QString & | hostName | |||
| ) | [static] |
Definition at line 276 of file upnp.cpp.
Referenced by ServiceHost::ProcessRequest().
Configuration * UPnp::g_pConfig = NULL [static, protected] |
Definition at line 99 of file upnp.h.
Referenced by CleanUp(), GetConfiguration(), MediaServer::Init(), Initialize(), MediaRenderer::MediaRenderer(), and SetConfiguration().
HttpServer* UPnp::m_pHttpServer [protected] |
Reimplemented in MediaRenderer.
Definition at line 101 of file upnp.h.
Referenced by MediaServer::Init(), Initialize(), and MediaServer::~MediaServer().
int UPnp::m_nServicePort [protected] |
Definition at line 102 of file upnp.h.
Referenced by Initialize(), and Start().
UPnpDeviceDesc UPnp::g_UPnpDeviceDesc [static] |
Definition at line 106 of file upnp.h.
Referenced by UPnpSearchTask::Execute(), UPnpNotifyTask::Execute(), SSDPExtension::GetDeviceDesc(), MediaServer::Init(), MediaRenderer::MediaRenderer(), and SSDP::ProcessSearchRequest().
QStringList UPnp::g_IPAddrList [static] |
Definition at line 107 of file upnp.h.
Referenced by UPnpSearchTask::Execute(), HttpStatus::FillStatusXML(), Initialize(), MythFrontendStatus::ProcessRequest(), UPnpNotifyTask::SendNotifyMsg(), and UPNPSubscription::UPNPSubscription().
1.6.3