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 // File Operations
251 FILE_DEFAULT_PATH,
252 FILE_DIRECTORY_OPERATION,
253};
254
255static QMap<COMMANDS, QString> const commands =
256{
257 {GET_CONNECTION, "get_connection"},
258 {GET_STATES, "get_states"},
259 {GET_STELLARSOLVER_PROFILES, "get_stellarsolver_profiles"},
260 {GET_DRIVERS, "get_drivers"},
261 {GET_DEVICES, "get_devices"},
262 {NEW_CONNECTION_STATE, "new_connection_state"},
263 {NEW_INDI_STATE, "new_indi_state"},
264 {NEW_MOUNT_STATE, "new_mount_state"},
265 {NEW_CAMERA_STATE, "new_camera_state"},
266 {NEW_CAPTURE_STATE, "new_capture_state"},
267 {NEW_GUIDE_STATE, "new_guide_state"},
268 {NEW_FOCUS_STATE, "new_focus_state"},
269 {NEW_ALIGN_STATE, "new_align_state"},
270 {NEW_POLAR_STATE, "new_polar_state"},
271 {NEW_DOME_STATE, "new_dome_state"},
272 {NEW_CAP_STATE, "new_cap_state"},
273 {NEW_PREVIEW_IMAGE, "new_preview_image"},
274 {NEW_VIDEO_FRAME, "new_video_frame"},
275 {NEW_ALIGN_FRAME, "new_align_frame"},
276 {NEW_NOTIFICATION, "new_notification"},
277 {NEW_TEMPERATURE, "new_temperature"},
278 {NEW_SCHEDULER_STATE, "new_scheduler_state"},
279
280 {INVOKE_METHOD, "invoke_method"},
281 {SET_PROPERTY, "set_property"},
282 {GET_PROPERTY, "get_property"},
283
284 {SET_CLIENT_STATE, "set_client_state"},
285 {LOGOUT, "logout"},
286 {SESSION_EXPIRED, "session_expired"},
287
288 {GET_PROFILES, "get_profiles"},
289 {START_PROFILE, "profile_start"},
290 {STOP_PROFILE, "profile_stop"},
291 {ADD_PROFILE, "profile_add"},
292 {GET_PROFILE, "profile_get"},
293 {DELETE_PROFILE, "profile_delete"},
294 {UPDATE_PROFILE, "profile_update"},
295 {SET_PROFILE_MAPPING, "profile_set_mapping"},
296 {SET_PROFILE_PORT_SELECTION, "profile_set_port_selection"},
297 {GET_PROFILE_PORT_SELECTION, "profile_get_port_selection"},
298
299 {GET_SCOPES, "get_scopes"},
300 {ADD_SCOPE, "scope_add"},
301 {DELETE_SCOPE, "scope_delete"},
302 {UPDATE_SCOPE, "scope_update"},
303
304 {TRAIN_GET_ALL, "train_get_all"},
305 {TRAIN_GET_PROFILES, "train_get_profiles"},
306 {TRAIN_UPDATE, "train_update"},
307 {TRAIN_SET, "train_set"},
308 {TRAIN_ADD, "train_add"},
309 {TRAIN_DELETE, "train_delete"},
310 {TRAIN_RESET, "train_reset"},
311 {TRAIN_CONFIGURATION_REQUESTED, "train_configuration_requested"},
312 {TRAIN_ACCEPT, "train_accept"},
313 {TRAIN_SETTINGS_GET, "train_settings_get"},
314
315 {CAPTURE_PREVIEW, "capture_preview"},
316 {CAPTURE_TOGGLE_VIDEO, "capture_toggle_video"},
317 {CAPTURE_TOGGLE_CAMERA, "capture_toggle_camera"},
318 {CAPTURE_TOGGLE_FILTER_WHEEL, "capture_toggle_filter_wheel"},
319 {CAPTURE_START, "capture_start"},
320 {CAPTURE_STOP, "capture_stop"},
321 {CAPTURE_GET_SEQUENCES, "capture_get_sequences"},
322 {CAPTURE_ADD_SEQUENCE, "capture_add_sequence"},
323 {CAPTURE_REMOVE_SEQUENCE, "capture_remove_sequence"},
324 {CAPTURE_CLEAR_SEQUENCES, "capture_clear_sequences"},
325 {CAPTURE_SAVE_SEQUENCE_FILE, "capture_save_sequence_file"},
326 {CAPTURE_LOAD_SEQUENCE_FILE, "capture_load_sequence_file"},
327 {CAPTURE_SET_ALL_SETTINGS, "capture_set_all_settings"},
328 {CAPTURE_GET_ALL_SETTINGS, "capture_get_all_settings"},
329 {CAPTURE_GET_PREVIEW_LABEL, "capture_get_preview_label"},
330 {CAPTURE_LOOP, "capture_loop"},
331 {CAPTURE_GENERATE_DARK_FLATS, "capture_generate_dark_flats"},
332
333 {MOUNT_PARK, "mount_park"},
334 {MOUNT_UNPARK, "mount_unpark"},
335 {MOUNT_ABORT, "mount_abort"},
336 {MOUNT_SYNC_RADE, "mount_sync_rade"},
337 {MOUNT_SYNC_TARGET, "mount_sync_target"},
338 {MOUNT_GOTO_RADE, "mount_goto_rade"},
339 {MOUNT_GOTO_TARGET, "mount_goto_target"},
340 {MOUNT_GOTO_PIXEL, "mount_goto_pixel"},
341 {MOUNT_SET_MOTION, "mount_set_motion"},
342 {MOUNT_SET_TRACKING, "mount_set_tracking"},
343 {MOUNT_SET_SLEW_RATE, "mount_set_slew_rate"},
344 {MOUNT_CLEAR, "mount_clear"},
345 {MOUNT_GET_ALL_SETTINGS, "mount_get_all_settings"},
346 {MOUNT_SET_ALL_SETTINGS, "mount_set_all_settings"},
347 {MOUNT_TOGGLE_AUTOPARK, "mount_toggle_autopark"},
348
349 {DOME_PARK, "dome_park"},
350 {DOME_UNPARK, "dome_unpark"},
351 {DOME_GOTO, "dome_goto"},
352 {DOME_STOP, "dome_stop"},
353
354 {CAP_PARK, "cap_park"},
355 {CAP_UNPARK, "cap_unpark"},
356 {CAP_SET_LIGHT, "cap_set_light"},
357
358 {FOCUS_START, "focus_start"},
359 {FOCUS_CAPTURE, "focus_capture"},
360 {FOCUS_STOP, "focus_stop"},
361 {FOCUS_RESET, "focus_reset"},
362 {FOCUS_IN, "focus_in"},
363 {FOCUS_OUT, "focus_out"},
364 {FOCUS_LOOP, "focus_loop"},
365 {FOCUS_SET_ALL_SETTINGS, "focus_set_all_settings"},
366 {FOCUS_GET_ALL_SETTINGS, "focus_get_all_settings"},
367 {FOCUS_SET_CROSSHAIR, "focus_set_crosshair"},
368
369 {SCHEDULER_GET_ALL_SETTINGS, "scheduler_get_all_settings"},
370 {SCHEDULER_SET_ALL_SETTINGS, "scheduler_set_all_settings"},
371 {SCHEDULER_SAVE_FILE, "scheduler_save_file"},
372 {SCHEDULER_SAVE_SEQUENCE_FILE, "scheduler_save_sequence_file"},
373 {SCHEDULER_LOAD_FILE, "scheduler_load_file"},
374 {SCHEDULER_GET_JOBS, "scheduler_get_jobs"},
375 {SCHEDULER_ADD_JOBS, "scheduler_add_jobs"},
376 {SCHEDULER_REMOVE_JOBS, "scheduler_remove_jobs"},
377 {SCHEDULER_START_JOB, "scheduler_start_job"},
378 {SCHEDULER_IMPORT_MOSAIC, "scheduler_import_mosaic"},
379
380 {GUIDE_START, "guide_start"},
381 {GUIDE_CAPTURE, "guide_capture"},
382 {GUIDE_LOOP, "guide_loop"},
383 {GUIDE_STOP, "guide_stop"},
384 {GUIDE_CLEAR, "guide_clear"},
385 {GUIDE_REPORT, "guide_report"},
386 {GUIDE_SET_ALL_SETTINGS, "guide_set_all_settings"},
387 {GUIDE_GET_ALL_SETTINGS, "guide_get_all_settings"},
388 {GUIDE_SET_CALIBRATION_SETTINGS, "guide_set_calibration_settings"},
389
390 {ALIGN_SOLVE, "align_solve"},
391 {ALIGN_STOP, "align_stop"},
392 {ALIGN_LOAD_AND_SLEW, "align_load_and_slew"},
393 {ALIGN_SET_FILE_EXTENSION, "align_set_file_extension"},
394 {ALIGN_SET_ALL_SETTINGS, "align_set_all_settings"},
395 {ALIGN_GET_ALL_SETTINGS, "align_get_all_settings"},
396 {ALIGN_SET_ASTROMETRY_SETTINGS, "align_set_astrometry_settings"},
397 {ALIGN_MANUAL_ROTATOR_STATUS, "align_manual_rotator_status"},
398 {ALIGN_MANUAL_ROTATOR_TOGGLE, "align_manual_rotator_toggle"},
399
400 {PAH_START, "polar_start"},
401 {PAH_STOP, "polar_stop"},
402 {PAH_REFRESH, "polar_refresh"},
403 {PAH_SET_CROSSHAIR, "polar_set_crosshair"},
404 {PAH_SELECT_STAR_DONE, "polar_star_select_done"},
405 {PAH_REFRESHING_DONE, "polar_refreshing_done"},
406 {PAH_RESET_VIEW, "polar_reset_view"},
407 {PAH_SLEW_DONE, "polar_slew_done"},
408 {PAH_PAH_SET_ZOOM, "polar_set_zoom"},
409 {PAH_SET_ALGORITHM, "polar_set_algorithm"},
410
411 {OPTION_SET, "option_set"},
412 {OPTION_GET, "option_get"},
413
414 {SET_BLOBS, "set_blobs"},
415
416 {DSLR_GET_INFO, "dslr_get_info"},
417 {DSLR_SET_INFO, "dslr_set_info"},
418 {DSLR_SET_MODE, "dslr_set_mode"},
419
420 {GET_DSLR_LENSES, "get_dslr_lenses"},
421 {DSLR_ADD_LENS, "dslr_add_lens"},
422 {DSLR_DELETE_LENS, "dslr_delete_lens"},
423 {DSLR_UPDATE_LENS, "dslr_update_lens"},
424
425 {DEVICE_GET, "device_get"},
426 {DEVICE_RESTART, "device_restart"},
427 {DEVICE_BLOB_GET, "device_blob_get"},
428 {DEVICE_PROPERTY_GET, "device_property_get"},
429 {DEVICE_PROPERTY_SET, "device_property_set"},
430 {DEVICE_PROPERTY_ADD, "device_property_add"},
431 {DEVICE_PROPERTY_REMOVE, "device_property_remove"},
432 {DEVICE_PROPERTY_SUBSCRIBE, "device_property_subscribe"},
433 {DEVICE_PROPERTY_UNSUBSCRIBE, "device_property_unsubscribe"},
434 {DEVICE_MESSAGE, "device_message"},
435
436 {DIALOG_GET_INFO, "dialog_get_info"},
437 {DIALOG_GET_RESPONSE, "dialog_get_response"},
438
439 {FM_GET_DATA, "fm_get_data"},
440 {FM_SET_DATA, "fm_set_data"},
441
442 {ASTRO_GET_ALMANC, "astro_get_almanac"},
443 {ASTRO_GET_NAMES, "astro_get_names"},
444 {ASTRO_GET_DESIGNATIONS, "astro_get_designations"},
445 {ASTRO_GET_LOCATION, "astro_get_location"},
446 {ASTRO_SEARCH_OBJECTS, "astro_search_objects"},
447 {ASTRO_GET_OBJECT_INFO, "astro_get_object_info"},
448 {ASTRO_GET_OBJECTS_INFO, "astro_get_objects_info"},
449 {ASTRO_GET_OBJECTS_IMAGE, "astro_get_objects_image"},
450 {ASTRO_GET_SKYPOINT_IMAGE, "astro_get_skypoint_image"},
451 {ASTRO_GET_OBJECTS_OBSERVABILITY, "astro_get_objects_observability"},
452 {ASTRO_GET_OBJECTS_RISESET, "astro_get_objects_riseset"},
453
454 {DARK_LIBRARY_START, "dark_library_start"},
455 {DARK_LIBRARY_STOP, "dark_library_stop"},
456 {DARK_LIBRARY_SET_CAMERA_PRESETS, "dark_library_set_camera_presets"},
457 {DARK_LIBRARY_GET_CAMERA_PRESETS, "dark_library_get_camera_presets"},
458 {DARK_LIBRARY_SET_ALL_SETTINGS, "dark_library_set_all_settings"},
459 {DARK_LIBRARY_GET_ALL_SETTINGS, "dark_library_get_all_settings"},
460 {DARK_LIBRARY_GET_DEFECT_SETTINGS, "dark_library_get_defect_settings"},
461 {DARK_LIBRARY_SET_DEFECT_PIXELS, "dark_library_set_defect_pixels"},
462 {DARK_LIBRARY_GET_VIEW_MASTERS, "dark_library_get_view_masters"},
463 {DARK_LIBRARY_GET_MASTERS_IMAGE, "dark_library_get_masters_image"},
464 {DARK_LIBRARY_CLEAR_MASTERS_ROW, "dark_library_clear_masters_row"},
465 {DARK_LIBRARY_SET_DEFECT_FRAME, "dark_library_set_defect_frame"},
466 {DARK_LIBRARY_SAVE_MAP, "dark_library_save_map"},
467
468 {FILE_DEFAULT_PATH, "file_default_path"},
469 {FILE_DIRECTORY_OPERATION, "file_directory_operation"},
470};
471
472}
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 Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.