11#include <QtWebSockets/QWebSocket>
15#include "ekos/align/polaralignmentassistant.h"
16#include "ekos/manager.h"
17#include "catalogsdb.h"
18#include "nodemanager.h"
29 virtual ~Message() =
default;
31 bool isConnected()
const;
34 void updateMountStatus(
const QJsonObject &status,
bool throttle =
false);
35 void updateCaptureStatus(
const QJsonObject &status);
43 void sendEvent(
const QString &message, KSNotification::EventSource source, KSNotification::EventType
event);
45 void sendDSLRLenses();
49 void sendTrainProfiles();
52 void sendSchedulerJobs();
53 void sendSchedulerJobList(
QJsonArray jobsList);
54 void sendSchedulerStatus(
const QJsonObject &status);
59 void expired(
const QUrl &url);
60 void optionsUpdated();
61 void resetPolarView();
65 void sendConnection();
66 void sendModuleState(
const QString &name);
67 void setPendingPropertiesEnabled(
bool enabled);
70 void setEkosStatingStatus(Ekos::CommunicationStatus status);
73 void setINDIStatus(Ekos::CommunicationStatus status);
77 void setAlignSolution(
const QVariantMap &solution);
78 void sendAlignSettings(
const QVariantMap &settings);
81 void sendGuideSettings(
const QVariantMap &settings);
84 void sendFocusSettings(
const QVariantMap &settings);
87 void sendMountSettings(
const QVariantMap &settings);
90 void sendDarkLibrarySettings(
const QVariantMap &settings);
93 void sendSchedulerSettings(
const QVariantMap &settings);
96 void setPAHStage(Ekos::PolarAlignmentAssistant::Stage stage);
97 void setPAHMessage(
const QString &message);
98 void setPolarResults(
QLineF correctionVector,
double polarError,
double azError,
double altError);
99 void setUpdatedErrors(
double total,
double az,
double alt);
100 void setPAHEnabled(
bool enabled);
101 void setBoundingRect(
QRect rect,
QSize view,
double currentZoom);
104 void sendCaptureSequence(
const QJsonArray &sequenceArray);
105 void sendPreviewLabel(
const QString &preview);
106 void sendCaptureSettings(
const QVariantMap &settings);
109 void autofocusAborted();
112 void requestDSLRInfo(
const QString &cameraName);
115 void requestPortSelection(
bool show);
118 void requestOpticalTrains(
bool show);
122 void processDialogResponse(
const QJsonObject &payload);
125 void processNewProperty(INDI::Property prop);
126 void processDeleteProperty(INDI::Property prop);
127 void processUpdateProperty(INDI::Property prop);
133 void sendStellarSolverProfiles();
135 void sendManualRotatorStatus(
double currentPA,
double targetPA,
double threshold);
141 void onDisconnected();
144 void onTextReceived(
const QString &);
149 void setProfileMapping(
const QJsonObject &payload);
154 void sendTemperature(
double value);
190 void processFilterManagerCommands(
const QString &command,
const QJsonObject &payload);
204 void dispatchDebounceQueue();
210 void sendResponse(
const QString &command,
const QString &payload);
211 void sendResponse(
const QString &command,
bool payload);
213 void sendPendingProperties();
218 uint number_unsigned_integer;
219 double number_double;
227 #if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
228 bool parseArgument(
QVariant::Type type,
const QVariant &arg, QMetaMethodArgument &genericArg, SimpleTypes &types);
232 Ekos::Manager *m_Manager {
nullptr };
235 bool m_sendBlobs {
true};
239 QRect m_BoundingRect;
241 double m_CurrentZoom {100};
244 QTimer m_PendingPropertiesTimer;
261 static const uint16_t THROTTLE_INTERVAL = 1000;
Manages the catalog database and provides an interface to provide an interface to query and modify th...
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Generic record interfaces and implementations.
virtual bool event(QEvent *e)