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, const QString &sBaseUrl, const QString &sSharePath)
 
virtual ~ServiceHost ()=default
 
QStringList GetBasePaths () override
 
bool ProcessRequest (HTTPRequest *pRequest) override
 
virtual QString GetServiceControlURL ()
 
const QMetaObject & GetServiceMetaObject ()
 
const MetaInfoMapGetMethods ()
 
- Public Member Functions inherited from HttpServerExtension
 HttpServerExtension (const QString &sName, const QString &sSharePath)
 
virtual ~HttpServerExtension ()=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, QFileInfo oInfo)
 
virtual bool FormatResponse (HTTPRequest *pRequest, 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
 
uint m_nSupportedMethods
 

Detailed Description

Definition at line 62 of file servicehost.h.

Constructor & Destructor Documentation

◆ ServiceHost()

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

Definition at line 190 of file servicehost.cpp.

◆ ~ServiceHost()

virtual ServiceHost::~ServiceHost ( )
virtualdefault

Member Function Documentation

◆ FormatResponse() [1/3]

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

Definition at line 455 of file servicehost.cpp.

Referenced by FormatResponse(), and ProcessRequest().

◆ FormatResponse() [2/3]

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

Definition at line 478 of file servicehost.cpp.

◆ FormatResponse() [3/3]

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

Definition at line 503 of file servicehost.cpp.

◆ GetBasePaths()

QStringList ServiceHost::GetBasePaths ( )
overridevirtual

Implements HttpServerExtension.

Definition at line 266 of file servicehost.cpp.

◆ ProcessRequest()

bool ServiceHost::ProcessRequest ( HTTPRequest pRequest)
overridevirtual

Implements HttpServerExtension.

Definition at line 275 of file servicehost.cpp.

◆ GetServiceControlURL()

virtual QString ServiceHost::GetServiceControlURL ( )
inlinevirtual

Definition at line 89 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

◆ GetServiceMetaObject()

const QMetaObject& ServiceHost::GetServiceMetaObject ( )
inline

Definition at line 91 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

◆ GetMethods()

const MetaInfoMap& ServiceHost::GetMethods ( )
inline

Definition at line 92 of file servicehost.h.

Referenced by Wsdl::GetWSDL().

Member Data Documentation

◆ m_sBaseUrl

QString ServiceHost::m_sBaseUrl
protected

Definition at line 66 of file servicehost.h.

Referenced by GetBasePaths(), ProcessRequest(), and ServiceHost().

◆ m_oMetaObject

QMetaObject ServiceHost::m_oMetaObject
protected

Definition at line 68 of file servicehost.h.

Referenced by ProcessRequest(), and ServiceHost().

◆ m_Methods

MetaInfoMap ServiceHost::m_Methods
protected

Definition at line 69 of file servicehost.h.

Referenced by ProcessRequest(), and ServiceHost().


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