Implements the main API services, including the status
operation which can be repeatedly polled to find the current state of the main program, including time, view, location, StelAction and StelProperty state changes, movement, script status ...
More...
#include <MainService.hpp>
|
virtual void | getImpl (const QByteArray &operation, const APIParameters ¶meters, APIServiceResponse &response) Q_DECL_OVERRIDE |
| Implements the GET operations. More...
|
|
virtual void | postImpl (const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE |
| Implements the HTTP POST operations. More...
|
|
QString | wrapHtml (QString &text, const QString &title) const |
| Because the HTML descriptions in Stellarium are often not compatible with "clean" HTML5 which is used for the main interface, this method can be used to explicitely set the doctype to 4.01 transitional for better results, and include the stylesheet iframestyle.css . 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...
|
|
Implements the main API services, including the status
operation which can be repeatedly polled to find the current state of the main program, including time, view, location, StelAction and StelProperty state changes, movement, script status ...
- See also
- MainService operations (/api/main/)
Definition at line 47 of file MainService.hpp.
virtual void MainService::postImpl |
( |
const QByteArray & |
operation, |
|
|
const APIParameters & |
parameters, |
|
|
const QByteArray & |
data, |
|
|
APIServiceResponse & |
response |
|
) |
| |
|
protectedvirtual |
virtual void MainService::update |
( |
double |
deltaTime | ) |
|
|
virtual |
The documentation for this class was generated from the following file: