Provides methods to look up location-related information, and change the current location.
More...
#include <LocationService.hpp>
|
| LocationService (QObject *parent=Q_NULLPTR) |
|
virtual QLatin1String | getPath () const Q_DECL_OVERRIDE |
| Returns the desired path mapping If there is a conflict, only the first object is mapped. More...
|
|
virtual void | get (const QByteArray &operation, const APIParameters ¶meters, APIServiceResponse &response) Q_DECL_OVERRIDE |
| Implements the HTTP GET requests. More...
|
|
virtual void | post (const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE |
| Implements the HTTP POST requests. More...
|
|
| AbstractAPIService (QObject *parent=Q_NULLPTR) |
| Only calls QObject constructor. More...
|
|
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, instead of having to queue it into the Stellarium main thread. More...
|
|
virtual void | update (double deltaTime) Q_DECL_OVERRIDE |
| Called in the main thread each frame. More...
|
|
|
static const Qt::ConnectionType | SERVICE_DEFAULT_INVOKETYPE |
| This defines the connection type QMetaObject::invokeMethod has to use inside a service: either Qt::DirectConnection for main thread handling, or Qt::BlockingQueuedConnection for HTTP thread handling. More...
|
|
Provides methods to look up location-related information, and change the current location.
- See also
- LocationService operations (/api/location/), LocationService
Definition at line 33 of file LocationService.hpp.
virtual QLatin1String LocationService::getPath |
( |
| ) |
const |
|
inlinevirtual |
virtual void LocationService::post |
( |
const QByteArray & |
operation, |
|
|
const APIParameters & |
parameters, |
|
|
const QByteArray & |
data, |
|
|
APIServiceResponse & |
response |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: