20 #ifndef MAINSERVICE_HPP_ 21 #define MAINSERVICE_HPP_ 23 #include "AbstractAPIService.hpp" 26 #include "VecMath.hpp" 28 #include <QContiguousCache> 29 #include <QJsonObject> 56 virtual void update(
double deltaTime) Q_DECL_OVERRIDE;
70 QString getInfoString();
73 bool focusObject(
const QString& name);
74 void focusPosition(
const Vec3d& pos);
76 void updateMovement(
float x,
float y,
bool xUpdated,
bool yUpdated);
78 void updateView(
double az,
double alt,
bool azUpdated,
bool altUpdated);
79 void setFov(
double fov);
81 void actionToggled(
const QString&
id,
bool val);
82 void propertyChanged(
const QString&
id,
const QVariant& val);
96 qint64 lastMoveUpdateTime;
98 struct ActionCacheEntry
100 ActionCacheEntry(
const QString& str,
bool val) : action(str),val(val) {}
106 QContiguousCache<ActionCacheEntry> actionCache;
108 QJsonObject getActionChangesSinceID(
int changeId);
110 struct PropertyCacheEntry
112 PropertyCacheEntry(
const QString& str,
const QVariant& val) : id(str),val(val) {}
116 QContiguousCache<PropertyCacheEntry> propCache;
118 QJsonObject getPropertyChangesSinceID(
int changeId);
Implements the main API services, including the status operation which can be repeatedly polled to fi...
virtual void postImpl(const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE
Implements the HTTP POST operations.
virtual void update(double deltaTime) Q_DECL_OVERRIDE
Used to implement move functionality.
Manages all the rendering at the level of the observer's surroundings.
Manage i18n operations such as message translation and date/time localization.
Main class for Stellarium core processing.
Thread-safe version of HttpResponse that can be passed around through QMetaObject::invokeMethod.
virtual void getImpl(const QByteArray &operation, const APIParameters ¶meters, APIServiceResponse &response) Q_DECL_OVERRIDE
Implements the GET operations.
Manages the head movements and zoom operations.
Abstract base class for all Remote Control Plug-in service implementations.
QMultiMap< QByteArray, QByteArray > APIParameters
Defines the HTTP request parameters for the service.
Define the StelObjectP type.
Manages the registration of specific object properties with the StelProperty system.
Manage the selection and queries on one or more StelObjects.
Manage scripting in Stellarium.
Manage sky cultures for stellarium.
Manager for StelAction instances. Allows registration of new actions, and finding an existing one by ...
QByteArray serviceName()
Returns the service name, used for request path mapping by the APIController.