|
MythTV master
|
#include <libmythupnp/eventing.h>
Public Member Functions | |
| Eventing (const QString &sExtensionName, QString sEventMethodName, const QString &sSharePath) | |
| ~Eventing () override | |
| QStringList | GetBasePaths () override |
| bool | ProcessRequest (HTTPRequest *pRequest) override |
| short | HoldEvents () |
| short | ReleaseEvents () |
| void | ExecutePostProcess () override |
Public Member Functions inherited from HttpServerExtension | |
| HttpServerExtension (QString sName, QString sSharePath) | |
| ~HttpServerExtension () override=default | |
| virtual bool | ProcessRequest (HTTPRequest *pRequest)=0 |
| virtual bool | ProcessOptions (HTTPRequest *pRequest) |
| Handle an OPTIONS request. More... | |
| virtual QStringList | GetBasePaths ()=0 |
| virtual int | GetSocketTimeout () const |
Public Member Functions inherited from StateVariables | |
| StateVariables ()=default | |
| virtual | ~StateVariables () |
| void | AddVariable (StateVariableBase *pBase) |
| template<class T > | |
| bool | SetValue (const QString &sName, const T &value) |
| template<class T > | |
| T | GetValue (const QString &sName) |
| uint | BuildNotifyBody (QTextStream &ts, std::chrono::microseconds ttLastNotified) const |
Public Member Functions inherited from IPostProcess | |
| virtual void | ExecutePostProcess ()=0 |
| virtual | ~IPostProcess ()=default |
Public Member Functions inherited from UPnpServiceImpl | |
| UPnpServiceImpl ()=default | |
| virtual | ~UPnpServiceImpl ()=default |
| void | RegisterService (UPnpDevice *device) |
| Creates a UPnpService and adds it to the UPnpDevice's list of services. More... | |
Protected Member Functions | |
| void | Notify () override |
| void | NotifySubscriber (SubscriberInfo *pInfo) |
| void | HandleSubscribe (HTTPRequest *pRequest) |
| void | HandleUnsubscribe (HTTPRequest *pRequest) |
| QString | GetServiceEventURL () override |
| Provides the URL of the event portion of the service. More... | |
| virtual void | Notify ()=0 |
Protected Member Functions inherited from UPnpServiceImpl | |
| virtual QString | GetServiceType (void)=0 |
| Provices the schema urn. More... | |
| virtual QString | GetServiceId (void)=0 |
| Provides the device specific urn. More... | |
| virtual QString | GetServiceControlURL (void)=0 |
| Provices the base URL for control commands. More... | |
| virtual QString | GetServiceDescURL (void)=0 |
| Provices the URL of the service description XML. More... | |
| virtual QString | GetServiceEventURL (void) |
| Provides the URL of the event portion of the service. More... | |
Protected Attributes | |
| QMutex | m_mutex |
| QString | m_sEventMethodName |
| Subscribers | m_subscribers |
| std::chrono::seconds | m_nSubscriptionDuration {30min} |
| short | m_nHoldCount {0} |
| SubscriberInfo * | m_pInitializeSubscriber {nullptr} |
Protected Attributes inherited from StateVariables | |
| SVMap | m_map |
Additional Inherited Members | |
Public Attributes inherited from HttpServerExtension | |
| QString | m_sName |
| QString | m_sSharePath |
| int | m_nSocketTimeout { -1 } |
| uint | m_nSupportedMethods |
Protected Types inherited from StateVariables | |
| using | SVMap = QMap< QString, StateVariableBase * > |
Definition at line 245 of file eventing.h.
| Eventing::Eventing | ( | const QString & | sExtensionName, |
| QString | sEventMethodName, | ||
| const QString & | sSharePath | ||
| ) |
Definition at line 66 of file eventing.cpp.
|
override |
Definition at line 81 of file eventing.cpp.
|
overridevirtual |
Implements IPostProcess.
Definition at line 178 of file eventing.cpp.
|
overridevirtual |
Implements HttpServerExtension.
Reimplemented in UPnpCDS, UPnpCMGR, UPnpMSRR, and MythFEXML.
Definition at line 135 of file eventing.cpp.
Referenced by UPnpCDS::GetBasePaths(), UPnpCMGR::GetBasePaths(), UPnpMSRR::GetBasePaths(), and MythFEXML::GetBasePaths().
|
inlineoverrideprotectedvirtual |
Provides the URL of the event portion of the service.
Reimplemented from UPnpServiceImpl.
Definition at line 273 of file eventing.h.
|
protected |
Definition at line 195 of file eventing.cpp.
Referenced by ProcessRequest().
|
protected |
Definition at line 294 of file eventing.cpp.
Referenced by ProcessRequest().
|
inline |
Definition at line 92 of file eventing.cpp.
|
overrideprotectedvirtual |
Implements StateVariables.
Definition at line 324 of file eventing.cpp.
Referenced by ReleaseEvents().
|
protected |
Definition at line 360 of file eventing.cpp.
Referenced by ExecutePostProcess(), and Notify().
|
overridevirtual |
Implements HttpServerExtension.
Reimplemented in UPnpCDS, UPnpCMGR, UPnpMSRR, and MythFEXML.
Definition at line 147 of file eventing.cpp.
Referenced by UPnpCDS::ProcessRequest(), UPnpCMGR::ProcessRequest(), and UPnpMSRR::ProcessRequest().
|
inline |
Definition at line 117 of file eventing.cpp.
|
protected |
Definition at line 253 of file eventing.h.
Referenced by HoldEvents(), Notify(), and ReleaseEvents().
|
protected |
Definition at line 260 of file eventing.h.
Referenced by HoldEvents(), and ReleaseEvents().
|
protected |
Definition at line 258 of file eventing.h.
Referenced by HandleSubscribe().
|
protected |
Definition at line 262 of file eventing.h.
Referenced by ExecutePostProcess(), and HandleSubscribe().
|
protected |
Definition at line 255 of file eventing.h.
Referenced by ProcessRequest().
|
protected |
Definition at line 256 of file eventing.h.
Referenced by HandleSubscribe(), HandleUnsubscribe(), Notify(), and ~Eventing().