20 #ifndef ABSTRACTAPISERVICE_HPP_ 21 #define ABSTRACTAPISERVICE_HPP_ 23 #include "RemoteControlServiceInterface.hpp" 44 virtual void update(
double deltaTime) Q_DECL_OVERRIDE;
AbstractAPIService(QObject *parent=Q_NULLPTR)
Only calls QObject constructor.
virtual bool isThreadSafe() const Q_DECL_OVERRIDE
Return true if the service's get() and post() methods can safely be run in the HTTP handler thread...
virtual void post(const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE
Provides a default implementation which returns an error message.
Thread-safe version of HttpResponse that can be passed around through QMetaObject::invokeMethod.
virtual void update(double deltaTime) Q_DECL_OVERRIDE
Called in the main thread each frame.
static const Qt::ConnectionType SERVICE_DEFAULT_INVOKETYPE
This defines the connection type QMetaObject::invokeMethod has to use inside a service: either Qt::Di...
Abstract base class for all RemoteControlServiceInterface implementations which are provided by the R...
QMultiMap< QByteArray, QByteArray > APIParameters
Defines the HTTP request parameters for the service.
Interface for all Remote Control Plug-in services.