20 #ifndef APIHANDLER_HPP_ 21 #define APIHANDLER_HPP_ 24 #include "AbstractAPIService.hpp" 44 void update(
double deltaTime);
59 typedef QMap<QByteArray,AbstractAPIService*> ServiceMap;
60 ServiceMap m_serviceMap;
The request handler generates a response for each HTTP request.
APIController(int prefixLength, QObject *parent=0)
Constructs an APIController.
virtual void service(HttpRequest &request, HttpResponse &response)
Handles an API-specific request.
Abstract base class for all Remote Control Plug-in service implementations.
void update(double deltaTime)
Should be called each frame from the main thread, like from StelModule::update.
void registerService(AbstractAPIService *service)
Registers a service with the APIController.
This object represents a single HTTP request.
This class handles the API-specific requests and dispatches them to the correct AbstractAPISerice imp...
This object represents a HTTP response, used to return something to the web client.