20 #ifndef APIHANDLER_HPP_ 21 #define APIHANDLER_HPP_ 24 #include "AbstractAPIService.hpp" 42 void update(
double deltaTime);
61 typedef QMap<QByteArray,RemoteControlServiceInterface*> ServiceMap;
62 ServiceMap m_serviceMap;
The request handler generates a response for each HTTP request.
virtual void service(HttpRequest &request, HttpResponse &response)
Handles an API-specific request.
Thread-safe version of HttpResponse that can be passed around through QMetaObject::invokeMethod.
QMultiMap< QByteArray, QByteArray > APIParameters
Defines the HTTP request parameters for the service.
APIController(int prefixLength, QObject *parent=Q_NULLPTR)
Constructs an APIController.
void update(double deltaTime)
Should be called each frame from the main thread, like from StelModule::update.
Interface for all Remote Control Plug-in services.
This object represents a single HTTP request.
This class handles the API-specific requests and dispatches them to the correct RemoteControlServiceI...
void registerService(RemoteControlServiceInterface *service)
Registers a service with the APIController.
This object represents a HTTP response, used to return something to the web client.