#include <ssdp.h>
Public Member Functions | |
| ~SSDP () | |
| void | RequestTerminate (void) |
| void | PerformSearch (const QString &sST, uint timeout_secs=2) |
| void | EnableNotifications (int nServicePort) |
| void | DisableNotifications () |
Static Public Member Functions | |
| static SSDP * | Instance () |
| static void | Shutdown () |
| static void | AddListener (QObject *listener) |
| static void | RemoveListener (QObject *listener) |
| static SSDPCacheEntries * | Find (const QString &sURI) |
| static DeviceLocation * | Find (const QString &sURI, const QString &sUSN) |
Protected Member Functions | |
| bool | ProcessSearchRequest (const QStringMap &sHeaders, QHostAddress peerAddress, quint16 peerPort) |
| bool | ProcessSearchResponse (const QStringMap &sHeaders) |
| bool | ProcessNotify (const QStringMap &sHeaders) |
| bool | IsTermRequested () |
| QString | GetHeaderValue (const QStringMap &headers, const QString &sKey, const QString &sDefault) |
| void | ProcessData (MSocketDevice *pSocket) |
| SSDPRequestType | ProcessRequestLine (const QString &sLine) |
| virtual void | run () |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
Private Member Functions | |
| SSDP () | |
Private Attributes | |
| QRegExp | m_procReqLineExp |
| MSocketDevice * | m_Sockets [3] |
| int | m_nPort |
| int | m_nSearchPort |
| int | m_nServicePort |
| UPnpNotifyTask * | m_pNotifyTask |
| bool | m_bAnnouncementsEnabled |
| bool | m_bTermRequested |
| QMutex | m_lock |
Static Private Attributes | |
| static SSDP * | g_pSSDP = NULL |
Definition at line 61 of file ssdp.h.
| SSDP::SSDP | ( | ) | [private] |
Definition at line 67 of file ssdp.cpp.
Referenced by Instance().
| bool SSDP::ProcessSearchRequest | ( | const QStringMap & | sHeaders, | |
| QHostAddress | peerAddress, | |||
| quint16 | peerPort | |||
| ) | [protected] |
Definition at line 455 of file ssdp.cpp.
Referenced by ProcessData().
| bool SSDP::ProcessSearchResponse | ( | const QStringMap & | sHeaders | ) | [protected] |
Definition at line 542 of file ssdp.cpp.
Referenced by ProcessData().
| bool SSDP::ProcessNotify | ( | const QStringMap & | sHeaders | ) | [protected] |
Definition at line 576 of file ssdp.cpp.
Referenced by ProcessData().
| bool SSDP::IsTermRequested | ( | ) | [protected] |
| QString SSDP::GetHeaderValue | ( | const QStringMap & | headers, | |
| const QString & | sKey, | |||
| const QString & | sDefault | |||
| ) | [protected] |
Definition at line 440 of file ssdp.cpp.
Referenced by ProcessNotify(), ProcessSearchRequest(), and ProcessSearchResponse().
| void SSDP::ProcessData | ( | MSocketDevice * | pSocket | ) | [protected] |
| SSDPRequestType SSDP::ProcessRequestLine | ( | const QString & | sLine | ) | [protected] |
Definition at line 411 of file ssdp.cpp.
Referenced by ProcessData().
| void SSDP::run | ( | void | ) | [protected, virtual] |
| SSDP * SSDP::Instance | ( | ) | [static] |
Definition at line 46 of file ssdp.cpp.
Referenced by UPnp::CleanUp(), cleanup(), BackendSelection::customEvent(), MythContextPrivate::DefaultUPnP(), EnableNotifications(), BackendSelection::Load(), MediaRenderer::MediaRenderer(), ProcessNotify(), ProcessSearchRequest(), ProcessSearchResponse(), UPnp::Start(), and MythContextPrivate::UPnPautoconf().
| void SSDP::Shutdown | ( | void | ) | [static] |
Definition at line 56 of file ssdp.cpp.
Referenced by MythContext::~MythContext().
| void SSDP::RequestTerminate | ( | void | ) |
| void SSDP::PerformSearch | ( | const QString & | sST, | |
| uint | timeout_secs = 2 | |||
| ) |
Definition at line 209 of file ssdp.cpp.
Referenced by MythContextPrivate::DefaultUPnP(), BackendSelection::Load(), MediaRenderer::MediaRenderer(), and MythContextPrivate::UPnPautoconf().
| void SSDP::EnableNotifications | ( | int | nServicePort | ) |
Definition at line 147 of file ssdp.cpp.
Referenced by UPnp::Start().
| void SSDP::DisableNotifications | ( | ) |
Definition at line 193 of file ssdp.cpp.
Referenced by UPnp::CleanUp(), and ~SSDP().
| static void SSDP::AddListener | ( | QObject * | listener | ) | [inline, static] |
Definition at line 124 of file ssdp.h.
Referenced by BackendSelection::Load().
| static void SSDP::RemoveListener | ( | QObject * | listener | ) | [inline, static] |
Definition at line 126 of file ssdp.h.
Referenced by BackendSelection::~BackendSelection().
| static SSDPCacheEntries* SSDP::Find | ( | const QString & | sURI | ) | [inline, static] |
Definition at line 129 of file ssdp.h.
Referenced by UPNPScanner::CheckStatus(), BackendSelection::customEvent(), MythContextPrivate::DefaultUPnP(), HttpStatus::FillStatusXML(), MythFrontendStatus::ProcessRequest(), and MythContextPrivate::UPnPautoconf().
| static DeviceLocation* SSDP::Find | ( | const QString & | sURI, | |
| const QString & | sUSN | |||
| ) | [inline, static] |
SSDP * SSDP::g_pSSDP = NULL [static, private] |
Definition at line 65 of file ssdp.h.
Referenced by Instance(), and Shutdown().
QRegExp SSDP::m_procReqLineExp [private] |
Definition at line 67 of file ssdp.h.
Referenced by ProcessRequestLine().
MSocketDevice* SSDP::m_Sockets[3] [private] |
int SSDP::m_nPort [private] |
int SSDP::m_nSearchPort [private] |
int SSDP::m_nServicePort [private] |
Definition at line 72 of file ssdp.h.
Referenced by EnableNotifications(), and ProcessSearchRequest().
UPnpNotifyTask* SSDP::m_pNotifyTask [private] |
Definition at line 74 of file ssdp.h.
Referenced by DisableNotifications(), EnableNotifications(), ProcessData(), and ~SSDP().
bool SSDP::m_bAnnouncementsEnabled [private] |
Definition at line 75 of file ssdp.h.
Referenced by DisableNotifications(), and EnableNotifications().
bool SSDP::m_bTermRequested [private] |
Definition at line 77 of file ssdp.h.
Referenced by RequestTerminate(), run(), and ~SSDP().
QMutex SSDP::m_lock [private] |
1.6.3