Kstars

commands.h
1/*
2 SPDX-FileCopyrightText: 2018 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 Message Channel
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#pragma once
10
11#include <QMap>
12
13namespace EkosLive
14{
15enum COMMANDS
16{
17 GET_CONNECTION,
18 GET_STATES,
19 GET_STELLARSOLVER_PROFILES,
20 GET_DRIVERS,
21 GET_DEVICES,
22 NEW_CONNECTION_STATE,
23 NEW_INDI_STATE,
24 NEW_MOUNT_STATE,
25 NEW_CAMERA_STATE,
26 NEW_CAPTURE_STATE,
27 NEW_GUIDE_STATE,
28 NEW_FOCUS_STATE,
29 NEW_ALIGN_STATE,
30 NEW_POLAR_STATE,
31 NEW_DOME_STATE,
32 NEW_CAP_STATE,
33 NEW_PREVIEW_IMAGE,
34 NEW_VIDEO_FRAME,
35 NEW_ALIGN_FRAME,
36 NEW_NOTIFICATION,
37 NEW_TEMPERATURE,
38 NEW_SCHEDULER_STATE,
39
40 INVOKE_METHOD,
41 SET_PROPERTY,
42 GET_PROPERTY,
43
44 SET_CLIENT_STATE,
45 LOGOUT,
46 SESSION_EXPIRED,
47
48 // Profiles
49 GET_PROFILES,
50 START_PROFILE,
51 STOP_PROFILE,
52 ADD_PROFILE,
53 GET_PROFILE,
54 DELETE_PROFILE,
55 UPDATE_PROFILE,
56 SET_PROFILE_MAPPING,
57 SET_PROFILE_PORT_SELECTION,
58 GET_PROFILE_PORT_SELECTION,
59
60 // SCOPES
61 GET_SCOPES,
62 ADD_SCOPE,
63 DELETE_SCOPE,
64 UPDATE_SCOPE,
65
66 // Trains
67 TRAIN_GET_ALL,
68 TRAIN_GET_PROFILES,
69 TRAIN_UPDATE,
70 TRAIN_SET,
71 TRAIN_ADD,
72 TRAIN_DELETE,
73 TRAIN_RESET,
74 TRAIN_CONFIGURATION_REQUESTED,
75 TRAIN_ACCEPT,
76
77 // Train Settings
78 TRAIN_SETTINGS_GET,
79
80 // Capture
81 CAPTURE_PREVIEW,
82 CAPTURE_TOGGLE_VIDEO,
83 CAPTURE_TOGGLE_CAMERA,
84 CAPTURE_TOGGLE_FILTER_WHEEL,
85 CAPTURE_START,
86 CAPTURE_STOP,
87 CAPTURE_GET_SEQUENCES,
88 CAPTURE_ADD_SEQUENCE,
89 CAPTURE_REMOVE_SEQUENCE,
90 CAPTURE_CLEAR_SEQUENCES,
91 CAPTURE_SAVE_SEQUENCE_FILE,
92 CAPTURE_LOAD_SEQUENCE_FILE,
93 CAPTURE_SET_ALL_SETTINGS,
94 CAPTURE_GET_ALL_SETTINGS,
95 CAPTURE_GET_PREVIEW_LABEL,
96 CAPTURE_LOOP,
97 CAPTURE_GENERATE_DARK_FLATS,
98
99 // Mount
100 MOUNT_PARK,
101 MOUNT_UNPARK,
102 MOUNT_ABORT,
103 MOUNT_SYNC_RADE,
104 MOUNT_SYNC_TARGET,
105 MOUNT_GOTO_RADE,
106 MOUNT_GOTO_TARGET,
107 MOUNT_GOTO_PIXEL,
108 MOUNT_SET_MOTION,
109 MOUNT_SET_TRACKING,
110 MOUNT_SET_SLEW_RATE,
111 MOUNT_CLEAR,
112 MOUNT_GET_ALL_SETTINGS,
113 MOUNT_SET_ALL_SETTINGS,
114 MOUNT_TOGGLE_AUTOPARK,
115
116 // Dome
117 DOME_PARK,
118 DOME_UNPARK,
119 DOME_GOTO,
120 DOME_STOP,
121
122 // Cap
123 CAP_PARK,
124 CAP_UNPARK,
125 CAP_SET_LIGHT,
126
127 // Focus
128 FOCUS_START,
129 FOCUS_CAPTURE,
130 FOCUS_STOP,
131 FOCUS_RESET,
132 FOCUS_IN,
133 FOCUS_OUT,
134 FOCUS_LOOP,
135 FOCUS_SET_ALL_SETTINGS,
136 FOCUS_GET_ALL_SETTINGS,
137 FOCUS_SET_CROSSHAIR,
138
139 // Guide
140 GUIDE_START,
141 GUIDE_CAPTURE,
142 GUIDE_LOOP,
143 GUIDE_STOP,
144 GUIDE_CLEAR,
145 GUIDE_REPORT,
146 GUIDE_SET_ALL_SETTINGS,
147 GUIDE_GET_ALL_SETTINGS,
148 GUIDE_SET_CALIBRATION_SETTINGS,
149 // Align
150 ALIGN_SOLVE,
151 ALIGN_STOP,
152 ALIGN_LOAD_AND_SLEW,
153 ALIGN_SET_FILE_EXTENSION,
154 ALIGN_SET_ALL_SETTINGS,
155 ALIGN_GET_ALL_SETTINGS,
156 ALIGN_SET_ASTROMETRY_SETTINGS,
157 ALIGN_MANUAL_ROTATOR_STATUS,
158 ALIGN_MANUAL_ROTATOR_TOGGLE,
159
160 // Scheduler
161 SCHEDULER_GET_ALL_SETTINGS,
162 SCHEDULER_SET_ALL_SETTINGS,
163 SCHEDULER_SAVE_FILE,
164 SCHEDULER_SAVE_SEQUENCE_FILE,
165 SCHEDULER_LOAD_FILE,
166 SCHEDULER_GET_JOBS,
167 SCHEDULER_ADD_JOBS,
168 SCHEDULER_REMOVE_JOBS,
169 SCHEDULER_START_JOB,
170 SCHEDULER_IMPORT_MOSAIC,
171
172 // Polar Assistant Helper
173 PAH_START,
174 PAH_STOP,
175 PAH_REFRESH,
176 PAH_SET_CROSSHAIR,
177 PAH_SELECT_STAR_DONE,
178 PAH_REFRESHING_DONE,
179 PAH_RESET_VIEW,
180 PAH_SLEW_DONE,
181 PAH_PAH_SET_ZOOM,
182 PAH_SET_ALGORITHM,
183
184 // Options
185 OPTION_SET,
186 OPTION_GET,
187
188 // Storage Options
189 SET_BLOBS,
190
191 // DSLRs
192 DSLR_GET_INFO,
193 DSLR_SET_INFO,
194 DSLR_SET_MODE,
195
196 //DSLR Lens
197 DSLR_ADD_LENS,
198 DSLR_DELETE_LENS,
199 DSLR_UPDATE_LENS,
200 GET_DSLR_LENSES,
201
202 // Low-level device Access
203 DEVICE_GET,
204 DEVICE_RESTART,
205 DEVICE_BLOB_GET,
206 DEVICE_PROPERTY_GET,
207 DEVICE_PROPERTY_SET,
208 DEVICE_PROPERTY_ADD,
209 DEVICE_PROPERTY_REMOVE,
210 DEVICE_PROPERTY_SUBSCRIBE,
211 DEVICE_PROPERTY_UNSUBSCRIBE,
212 DEVICE_MESSAGE,
213
214 // Dialogs
215 DIALOG_GET_INFO,
216 DIALOG_GET_RESPONSE,
217
218 // Filter Manager
219 FM_GET_DATA,
220 FM_SET_DATA,
221
222 // Astronomy Library
223 ASTRO_GET_ALMANC,
224 ASTRO_GET_NAMES,
225 ASTRO_GET_DESIGNATIONS,
226 ASTRO_GET_LOCATION,
227 ASTRO_SEARCH_OBJECTS,
228 ASTRO_GET_OBJECT_INFO,
229 ASTRO_GET_OBJECTS_INFO,
230 ASTRO_GET_OBJECTS_IMAGE,
231 ASTRO_GET_SKYPOINT_IMAGE,
232 ASTRO_GET_OBJECTS_OBSERVABILITY,
233 ASTRO_GET_OBJECTS_RISESET,
234
235 // Dark Library
236 DARK_LIBRARY_START,
237 DARK_LIBRARY_STOP,
238 DARK_LIBRARY_SET_CAMERA_PRESETS,
239 DARK_LIBRARY_GET_CAMERA_PRESETS,
240 DARK_LIBRARY_SET_ALL_SETTINGS,
241 DARK_LIBRARY_GET_ALL_SETTINGS,
242 DARK_LIBRARY_GET_DEFECT_SETTINGS,
243 DARK_LIBRARY_SET_DEFECT_PIXELS,
244 DARK_LIBRARY_SAVE_MAP,
245 DARK_LIBRARY_GET_VIEW_MASTERS,
246 DARK_LIBRARY_GET_MASTERS_IMAGE,
247 DARK_LIBRARY_CLEAR_MASTERS_ROW,
248 DARK_LIBRARY_SET_DEFECT_FRAME,
249};
250
251static QMap<COMMANDS, QString> const commands =
252{
253 {GET_CONNECTION, "get_connection"},
254 {GET_STATES, "get_states"},
255 {GET_STELLARSOLVER_PROFILES, "get_stellarsolver_profiles"},
256 {GET_DRIVERS, "get_drivers"},
257 {GET_DEVICES, "get_devices"},
258 {NEW_CONNECTION_STATE, "new_connection_state"},
259 {NEW_INDI_STATE, "new_indi_state"},
260 {NEW_MOUNT_STATE, "new_mount_state"},
261 {NEW_CAMERA_STATE, "new_camera_state"},
262 {NEW_CAPTURE_STATE, "new_capture_state"},
263 {NEW_GUIDE_STATE, "new_guide_state"},
264 {NEW_FOCUS_STATE, "new_focus_state"},
265 {NEW_ALIGN_STATE, "new_align_state"},
266 {NEW_POLAR_STATE, "new_polar_state"},
267 {NEW_DOME_STATE, "new_dome_state"},
268 {NEW_CAP_STATE, "new_cap_state"},
269 {NEW_PREVIEW_IMAGE, "new_preview_image"},
270 {NEW_VIDEO_FRAME, "new_video_frame"},
271 {NEW_ALIGN_FRAME, "new_align_frame"},
272 {NEW_NOTIFICATION, "new_notification"},
273 {NEW_TEMPERATURE, "new_temperature"},
274 {NEW_SCHEDULER_STATE, "new_scheduler_state"},
275
276 {INVOKE_METHOD, "invoke_method"},
277 {SET_PROPERTY, "set_property"},
278 {GET_PROPERTY, "get_property"},
279
280 {SET_CLIENT_STATE, "set_client_state"},
281 {LOGOUT, "logout"},
282 {SESSION_EXPIRED, "session_expired"},
283
284 {GET_PROFILES, "get_profiles"},
285 {START_PROFILE, "profile_start"},
286 {STOP_PROFILE, "profile_stop"},
287 {ADD_PROFILE, "profile_add"},
288 {GET_PROFILE, "profile_get"},
289 {DELETE_PROFILE, "profile_delete"},
290 {UPDATE_PROFILE, "profile_update"},
291 {SET_PROFILE_MAPPING, "profile_set_mapping"},
292 {SET_PROFILE_PORT_SELECTION, "profile_set_port_selection"},
293 {GET_PROFILE_PORT_SELECTION, "profile_get_port_selection"},
294
295 {GET_SCOPES, "get_scopes"},
296 {ADD_SCOPE, "scope_add"},
297 {DELETE_SCOPE, "scope_delete"},
298 {UPDATE_SCOPE, "scope_update"},
299
300 {TRAIN_GET_ALL, "train_get_all"},
301 {TRAIN_GET_PROFILES, "train_get_profiles"},
302 {TRAIN_UPDATE, "train_update"},
303 {TRAIN_SET, "train_set"},
304 {TRAIN_ADD, "train_add"},
305 {TRAIN_DELETE, "train_delete"},
306 {TRAIN_RESET, "train_reset"},
307 {TRAIN_CONFIGURATION_REQUESTED, "train_configuration_requested"},
308 {TRAIN_ACCEPT, "train_accept"},
309 {TRAIN_SETTINGS_GET, "train_settings_get"},
310
311 {CAPTURE_PREVIEW, "capture_preview"},
312 {CAPTURE_TOGGLE_VIDEO, "capture_toggle_video"},
313 {CAPTURE_TOGGLE_CAMERA, "capture_toggle_camera"},
314 {CAPTURE_TOGGLE_FILTER_WHEEL, "capture_toggle_filter_wheel"},
315 {CAPTURE_START, "capture_start"},
316 {CAPTURE_STOP, "capture_stop"},
317 {CAPTURE_GET_SEQUENCES, "capture_get_sequences"},
318 {CAPTURE_ADD_SEQUENCE, "capture_add_sequence"},
319 {CAPTURE_REMOVE_SEQUENCE, "capture_remove_sequence"},
320 {CAPTURE_CLEAR_SEQUENCES, "capture_clear_sequences"},
321 {CAPTURE_SAVE_SEQUENCE_FILE, "capture_save_sequence_file"},
322 {CAPTURE_LOAD_SEQUENCE_FILE, "capture_load_sequence_file"},
323 {CAPTURE_SET_ALL_SETTINGS, "capture_set_all_settings"},
324 {CAPTURE_GET_ALL_SETTINGS, "capture_get_all_settings"},
325 {CAPTURE_GET_PREVIEW_LABEL, "capture_get_preview_label"},
326 {CAPTURE_LOOP, "capture_loop"},
327 {CAPTURE_GENERATE_DARK_FLATS, "capture_generate_dark_flats"},
328
329 {MOUNT_PARK, "mount_park"},
330 {MOUNT_UNPARK, "mount_unpark"},
331 {MOUNT_ABORT, "mount_abort"},
332 {MOUNT_SYNC_RADE, "mount_sync_rade"},
333 {MOUNT_SYNC_TARGET, "mount_sync_target"},
334 {MOUNT_GOTO_RADE, "mount_goto_rade"},
335 {MOUNT_GOTO_TARGET, "mount_goto_target"},
336 {MOUNT_GOTO_PIXEL, "mount_goto_pixel"},
337 {MOUNT_SET_MOTION, "mount_set_motion"},
338 {MOUNT_SET_TRACKING, "mount_set_tracking"},
339 {MOUNT_SET_SLEW_RATE, "mount_set_slew_rate"},
340 {MOUNT_CLEAR, "mount_clear"},
341 {MOUNT_GET_ALL_SETTINGS, "mount_get_all_settings"},
342 {MOUNT_SET_ALL_SETTINGS, "mount_set_all_settings"},
343 {MOUNT_TOGGLE_AUTOPARK, "mount_toggle_autopark"},
344
345 {DOME_PARK, "dome_park"},
346 {DOME_UNPARK, "dome_unpark"},
347 {DOME_GOTO, "dome_goto"},
348 {DOME_STOP, "dome_stop"},
349
350 {CAP_PARK, "cap_park"},
351 {CAP_UNPARK, "cap_unpark"},
352 {CAP_SET_LIGHT, "cap_set_light"},
353
354 {FOCUS_START, "focus_start"},
355 {FOCUS_CAPTURE, "focus_capture"},
356 {FOCUS_STOP, "focus_stop"},
357 {FOCUS_RESET, "focus_reset"},
358 {FOCUS_IN, "focus_in"},
359 {FOCUS_OUT, "focus_out"},
360 {FOCUS_LOOP, "focus_loop"},
361 {FOCUS_SET_ALL_SETTINGS, "focus_set_all_settings"},
362 {FOCUS_GET_ALL_SETTINGS, "focus_get_all_settings"},
363 {FOCUS_SET_CROSSHAIR, "focus_set_crosshair"},
364
365 {SCHEDULER_GET_ALL_SETTINGS, "scheduler_get_all_settings"},
366 {SCHEDULER_SET_ALL_SETTINGS, "scheduler_set_all_settings"},
367 {SCHEDULER_SAVE_FILE, "scheduler_save_file"},
368 {SCHEDULER_SAVE_SEQUENCE_FILE, "scheduler_save_sequence_file"},
369 {SCHEDULER_LOAD_FILE, "scheduler_load_file"},
370 {SCHEDULER_GET_JOBS, "scheduler_get_jobs"},
371 {SCHEDULER_ADD_JOBS, "scheduler_add_jobs"},
372 {SCHEDULER_REMOVE_JOBS, "scheduler_remove_jobs"},
373 {SCHEDULER_START_JOB, "scheduler_start_job"},
374 {SCHEDULER_IMPORT_MOSAIC, "scheduler_import_mosaic"},
375
376 {GUIDE_START, "guide_start"},
377 {GUIDE_CAPTURE, "guide_capture"},
378 {GUIDE_LOOP, "guide_loop"},
379 {GUIDE_STOP, "guide_stop"},
380 {GUIDE_CLEAR, "guide_clear"},
381 {GUIDE_REPORT, "guide_report"},
382 {GUIDE_SET_ALL_SETTINGS, "guide_set_all_settings"},
383 {GUIDE_GET_ALL_SETTINGS, "guide_get_all_settings"},
384 {GUIDE_SET_CALIBRATION_SETTINGS, "guide_set_calibration_settings"},
385
386 {ALIGN_SOLVE, "align_solve"},
387 {ALIGN_STOP, "align_stop"},
388 {ALIGN_LOAD_AND_SLEW, "align_load_and_slew"},
389 {ALIGN_SET_FILE_EXTENSION, "align_set_file_extension"},
390 {ALIGN_SET_ALL_SETTINGS, "align_set_all_settings"},
391 {ALIGN_GET_ALL_SETTINGS, "align_get_all_settings"},
392 {ALIGN_SET_ASTROMETRY_SETTINGS, "align_set_astrometry_settings"},
393 {ALIGN_MANUAL_ROTATOR_STATUS, "align_manual_rotator_status"},
394 {ALIGN_MANUAL_ROTATOR_TOGGLE, "align_manual_rotator_toggle"},
395
396 {PAH_START, "polar_start"},
397 {PAH_STOP, "polar_stop"},
398 {PAH_REFRESH, "polar_refresh"},
399 {PAH_SET_CROSSHAIR, "polar_set_crosshair"},
400 {PAH_SELECT_STAR_DONE, "polar_star_select_done"},
401 {PAH_REFRESHING_DONE, "polar_refreshing_done"},
402 {PAH_RESET_VIEW, "polar_reset_view"},
403 {PAH_SLEW_DONE, "polar_slew_done"},
404 {PAH_PAH_SET_ZOOM, "polar_set_zoom"},
405 {PAH_SET_ALGORITHM, "polar_set_algorithm"},
406
407 {OPTION_SET, "option_set"},
408 {OPTION_GET, "option_get"},
409
410 {SET_BLOBS, "set_blobs"},
411
412 {DSLR_GET_INFO, "dslr_get_info"},
413 {DSLR_SET_INFO, "dslr_set_info"},
414 {DSLR_SET_MODE, "dslr_set_mode"},
415
416 {GET_DSLR_LENSES, "get_dslr_lenses"},
417 {DSLR_ADD_LENS, "dslr_add_lens"},
418 {DSLR_DELETE_LENS, "dslr_delete_lens"},
419 {DSLR_UPDATE_LENS, "dslr_update_lens"},
420
421 {DEVICE_GET, "device_get"},
422 {DEVICE_RESTART, "device_restart"},
423 {DEVICE_BLOB_GET, "device_blob_get"},
424 {DEVICE_PROPERTY_GET, "device_property_get"},
425 {DEVICE_PROPERTY_SET, "device_property_set"},
426 {DEVICE_PROPERTY_ADD, "device_property_add"},
427 {DEVICE_PROPERTY_REMOVE, "device_property_remove"},
428 {DEVICE_PROPERTY_SUBSCRIBE, "device_property_subscribe"},
429 {DEVICE_PROPERTY_UNSUBSCRIBE, "device_property_unsubscribe"},
430 {DEVICE_MESSAGE, "device_message"},
431
432 {DIALOG_GET_INFO, "dialog_get_info"},
433 {DIALOG_GET_RESPONSE, "dialog_get_response"},
434
435 {FM_GET_DATA, "fm_get_data"},
436 {FM_SET_DATA, "fm_set_data"},
437
438 {ASTRO_GET_ALMANC, "astro_get_almanac"},
439 {ASTRO_GET_NAMES, "astro_get_names"},
440 {ASTRO_GET_DESIGNATIONS, "astro_get_designations"},
441 {ASTRO_GET_LOCATION, "astro_get_location"},
442 {ASTRO_SEARCH_OBJECTS, "astro_search_objects"},
443 {ASTRO_GET_OBJECT_INFO, "astro_get_object_info"},
444 {ASTRO_GET_OBJECTS_INFO, "astro_get_objects_info"},
445 {ASTRO_GET_OBJECTS_IMAGE, "astro_get_objects_image"},
446 {ASTRO_GET_SKYPOINT_IMAGE, "astro_get_skypoint_image"},
447 {ASTRO_GET_OBJECTS_OBSERVABILITY, "astro_get_objects_observability"},
448 {ASTRO_GET_OBJECTS_RISESET, "astro_get_objects_riseset"},
449
450 {DARK_LIBRARY_START, "dark_library_start"},
451 {DARK_LIBRARY_STOP, "dark_library_stop"},
452 {DARK_LIBRARY_SET_CAMERA_PRESETS, "dark_library_set_camera_presets"},
453 {DARK_LIBRARY_GET_CAMERA_PRESETS, "dark_library_get_camera_presets"},
454 {DARK_LIBRARY_SET_ALL_SETTINGS, "dark_library_set_all_settings"},
455 {DARK_LIBRARY_GET_ALL_SETTINGS, "dark_library_get_all_settings"},
456 {DARK_LIBRARY_GET_DEFECT_SETTINGS, "dark_library_get_defect_settings"},
457 {DARK_LIBRARY_SET_DEFECT_PIXELS, "dark_library_set_defect_pixels"},
458 {DARK_LIBRARY_GET_VIEW_MASTERS, "dark_library_get_view_masters"},
459 {DARK_LIBRARY_GET_MASTERS_IMAGE, "dark_library_get_masters_image"},
460 {DARK_LIBRARY_CLEAR_MASTERS_ROW, "dark_library_clear_masters_row"},
461 {DARK_LIBRARY_SET_DEFECT_FRAME, "dark_library_set_defect_frame"},
462 {DARK_LIBRARY_SAVE_MAP, "dark_library_save_map"}
463};
464
465}
Generic record interfaces and implementations.
Definition cloud.cpp:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.