Changeset View
Changeset View
Standalone View
Standalone View
kstars/indi/clientmanagerlite.h
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | 75 | public: | |||
---|---|---|---|---|---|
103 | Q_INVOKABLE void stopWebManagerProfile(); | 103 | Q_INVOKABLE void stopWebManagerProfile(); | ||
104 | 104 | | |||
105 | /** Handle the errors of the async Web Manager requests */ | 105 | /** Handle the errors of the async Web Manager requests */ | ||
106 | Q_INVOKABLE void webManagerReplyError(QNetworkReply::NetworkError code); | 106 | Q_INVOKABLE void webManagerReplyError(QNetworkReply::NetworkError code); | ||
107 | 107 | | |||
108 | /** Do actions when async Web Manager requests are finished */ | 108 | /** Do actions when async Web Manager requests are finished */ | ||
109 | Q_INVOKABLE void webManagerReplyFinished(); | 109 | Q_INVOKABLE void webManagerReplyFinished(); | ||
110 | 110 | | |||
111 | Q_INVOKABLE TelescopeLite *getTelescope(const QString &deviceName); | 111 | Q_INVOKABLE TelescopeLite *getTelescope(); | ||
112 | 112 | | |||
113 | QString connectedHost() { return m_connectedHost; } | 113 | QString connectedHost() { return m_connectedHost; } | ||
114 | void setConnectedHost(const QString &connectedHost); | 114 | void setConnectedHost(const QString &connectedHost); | ||
115 | void setConnected(bool connected); | 115 | void setConnected(bool connected); | ||
116 | 116 | | |||
117 | /** | 117 | /** | ||
118 | * Set the INDI Control Page | 118 | * Set the INDI Control Page | ||
119 | * | 119 | * | ||
▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 187 | signals: | |||
217 | void newINDILight(QString deviceName, QString propName); | 217 | void newINDILight(QString deviceName, QString propName); | ||
218 | void newINDIBLOBImage(QString deviceName, bool isLoaded); | 218 | void newINDIBLOBImage(QString deviceName, bool isLoaded); | ||
219 | void newLEDState(QString deviceName, QString propName); // to sync LED for properties | 219 | void newLEDState(QString deviceName, QString propName); // to sync LED for properties | ||
220 | 220 | | |||
221 | void connectedHostChanged(QString); | 221 | void connectedHostChanged(QString); | ||
222 | void connectedChanged(bool); | 222 | void connectedChanged(bool); | ||
223 | void telescopeAdded(TelescopeLite *newTelescope); | 223 | void telescopeAdded(TelescopeLite *newTelescope); | ||
224 | void telescopeRemoved(TelescopeLite *delTelescope); | 224 | void telescopeRemoved(TelescopeLite *delTelescope); | ||
225 | void telescopeConnected(TelescopeLite *telescope); | ||||
226 | void telescopeDisconnected(); | ||||
225 | 227 | | |||
226 | void lastUsedServerChanged(); | 228 | void lastUsedServerChanged(); | ||
227 | void lastUsedPortChanged(); | 229 | void lastUsedPortChanged(); | ||
228 | void lastUsedWebManagerPortChanged(); | 230 | void lastUsedWebManagerPortChanged(); | ||
229 | 231 | | |||
230 | private: | 232 | private: | ||
231 | bool processBLOBasCCD(IBLOB *bp); | 233 | bool processBLOBasCCD(IBLOB *bp); | ||
232 | 234 | | |||
Show All 13 Lines | |||||
246 | /// Network reply for Web Manager status | 248 | /// Network reply for Web Manager status | ||
247 | std::unique_ptr<QNetworkReply> webMStatusReply; | 249 | std::unique_ptr<QNetworkReply> webMStatusReply; | ||
248 | /// Network reply to stop the active profile in the Web Manager | 250 | /// Network reply to stop the active profile in the Web Manager | ||
249 | std::unique_ptr<QNetworkReply> webMStopProfileReply; | 251 | std::unique_ptr<QNetworkReply> webMStopProfileReply; | ||
250 | /// Network reply to start a profile in the Web Manager | 252 | /// Network reply to start a profile in the Web Manager | ||
251 | std::unique_ptr<QNetworkReply> webMStartProfileReply; | 253 | std::unique_ptr<QNetworkReply> webMStartProfileReply; | ||
252 | /// Web Manager profiles | 254 | /// Web Manager profiles | ||
253 | QStringList webMProfiles; | 255 | QStringList webMProfiles; | ||
256 | TelescopeLite *m_telescope { nullptr }; | ||||
254 | #ifdef ANDROID | 257 | #ifdef ANDROID | ||
255 | QString defaultImageType; | 258 | QString defaultImageType; | ||
256 | QString defaultImagesLocation; | 259 | QString defaultImagesLocation; | ||
257 | #endif | 260 | #endif | ||
258 | }; | 261 | }; |