MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ServiceHost Class Reference

#include <servicehost.h>

Inheritance diagram for ServiceHost:
Inheritance graph
[legend]
Collaboration diagram for ServiceHost:
Collaboration graph
[legend]

Public Member Functions

 ServiceHost (const QMetaObject &metaObject, const QString &sExtensionName, QString sBaseUrl, const QString &sSharePath)
 
 ~ServiceHost () override=default
 
QStringList GetBasePaths () override
 
bool ProcessRequest (HTTPRequest *pRequest) override
 
virtual QString GetServiceControlURL ()
 
const QMetaObject & GetServiceMetaObject ()
 
const MetaInfoMapGetMethods ()
 
- Public Member Functions inherited from HttpServerExtension
 HttpServerExtension (QString sName, QString sSharePath)
 
 ~HttpServerExtension () override=default
 
virtual bool ProcessOptions (HTTPRequest *pRequest)
 Handle an OPTIONS request. More...
 
virtual int GetSocketTimeout () const
 

Protected Member Functions

virtual bool FormatResponse (HTTPRequest *pRequest, QObject *pResults)
 
virtual bool FormatResponse (HTTPRequest *pRequest, const QFileInfo &oInfo)
 
virtual bool FormatResponse (HTTPRequest *pRequest, const QVariant &vValue)
 

Protected Attributes

QString m_sBaseUrl
 
QMetaObject m_oMetaObject {}
 
MetaInfoMap m_methods
 

Additional Inherited Members

- Public Attributes inherited from HttpServerExtension
QString m_sName
 
QString m_sSharePath
 
int m_nSocketTimeout { -1 }
 
uint m_nSupportedMethods
 

Detailed Description

Definition at line 63 of file servicehost.h.

Constructor & Destructor Documentation

◆ ServiceHost()

ServiceHost::ServiceHost ( const QMetaObject &  metaObject,
const QString &  sExtensionName,
QString  sBaseUrl,
const QString &  sSharePath 
)

Definition at line 208 of file servicehost.cpp.

◆ ~ServiceHost()

ServiceHost::~ServiceHost ( )
overridedefault

Member Function Documentation

◆ FormatResponse() [1/3]

bool ServiceHost::FormatResponse ( HTTPRequest pRequest,
QObject *  pResults 
)
protectedvirtual

Definition at line 472 of file servicehost.cpp.

Referenced by FormatResponse(), and ProcessRequest().

◆ FormatResponse() [2/3]

bool ServiceHost::FormatResponse ( HTTPRequest pRequest,
const QFileInfo &  oInfo 
)
protectedvirtual

Definition at line 495 of file servicehost.cpp.

◆ FormatResponse() [3/3]

bool ServiceHost::FormatResponse ( HTTPRequest pRequest,
const QVariant &  vValue 
)
protectedvirtual

Definition at line 518 of file servicehost.cpp.

◆ GetBasePaths()

QStringList ServiceHost::GetBasePaths ( )
overridevirtual

Implements HttpServerExtension.

Definition at line 283 of file servicehost.cpp.

◆ ProcessRequest()

bool ServiceHost::ProcessRequest ( HTTPRequest pRequest)
overridevirtual

Implements HttpServerExtension.

Definition at line 292 of file servicehost.cpp.

◆ GetServiceControlURL()

virtual QString ServiceHost::GetServiceControlURL ( )
inlinevirtual

Definition at line 90 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

◆ GetServiceMetaObject()

const QMetaObject& ServiceHost::GetServiceMetaObject ( )
inline

Definition at line 92 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

◆ GetMethods()

const MetaInfoMap& ServiceHost::GetMethods ( )
inline

Definition at line 93 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

Member Data Documentation

◆ m_sBaseUrl

QString ServiceHost::m_sBaseUrl
protected

Definition at line 67 of file servicehost.h.

Referenced by GetBasePaths(), and ProcessRequest().

◆ m_oMetaObject

QMetaObject ServiceHost::m_oMetaObject {}
protected

Definition at line 69 of file servicehost.h.

Referenced by ProcessRequest(), and ServiceHost().

◆ m_methods

MetaInfoMap ServiceHost::m_methods
protected

Definition at line 70 of file servicehost.h.

Referenced by ProcessRequest(), and ServiceHost().


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