20 #ifndef MAINSERVICE_HPP_ 21 #define MAINSERVICE_HPP_ 23 #include "AbstractAPIService.hpp" 26 #include "VecMath.hpp" 28 #include <QContiguousCache> 29 #include <QJsonObject> 52 Q_ENUMS(SelectionMode)
64 virtual void update(
double deltaTime) Q_DECL_OVERRIDE;
65 virtual QLatin1String
getPath() const Q_DECL_OVERRIDE {
return QLatin1String(
"main"); }
77 QString getInfoString();
80 bool focusObject(
const QString& name, SelectionMode mode);
81 void focusPosition(
const Vec3d& pos);
83 void updateMovement(
double x,
double y,
bool xUpdated,
bool yUpdated);
85 void updateView(
double az,
double alt,
bool azUpdated,
bool altUpdated);
86 void setFov(
double fov);
88 void actionToggled(
const QString&
id,
bool val);
89 void propertyChanged(
StelProperty* prop,
const QVariant &val);
103 qint64 lastMoveUpdateTime;
105 struct ActionCacheEntry
107 ActionCacheEntry(
const QString& str,
bool val) : action(str),val(val) {}
113 QContiguousCache<ActionCacheEntry> actionCache;
115 QJsonObject getActionChangesSinceID(
int changeId);
117 struct PropertyCacheEntry
119 PropertyCacheEntry(
const QString& str,
const QVariant& val) : id(str),val(val) {}
123 QContiguousCache<PropertyCacheEntry> propCache;
125 QJsonObject getPropertyChangesSinceID(
int changeId);
Implements the main API services, including the status operation which can be repeatedly polled to fi...
virtual void update(double deltaTime) Q_DECL_OVERRIDE
Used to implement move functionality.
Wrapper around a Q_PROPERTY (see the Qt property system for more information) of a specific object...
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 post(const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE
Implements the HTTP POST operations.
Manages the head movements and zoom operations.
Abstract base class for all RemoteControlServiceInterface implementations which are provided by the R...
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.
virtual QLatin1String getPath() const Q_DECL_OVERRIDE
Returns the desired path mapping If there is a conflict, only the first object is mapped...
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 ...