Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/indihub.h
- This file was copied to kstars/ekos/indihub.cpp.
Show All 16 Lines | |||||
17 | enum | 17 | enum | ||
18 | { | 18 | { | ||
19 | None, | 19 | None, | ||
20 | Solo, | 20 | Solo, | ||
21 | Share, | 21 | Share, | ||
22 | Robotic | 22 | Robotic | ||
23 | }; | 23 | }; | ||
24 | 24 | | |||
25 | QString toString(uint8_t mode) | 25 | struct AgentStatus | ||
26 | { | 26 | { | ||
27 | if (mode == Solo) | 27 | QString version; | ||
28 | return "solo"; | 28 | QString mode; | ||
29 | else if (mode == Share) | 29 | QString indiProfile; | ||
30 | return "share"; | 30 | QString indiServer; | ||
31 | else if (mode == Robotic) | 31 | QString phd2Server; | ||
32 | return "robotic"; | 32 | QString indiServerEndpoint; | ||
33 | else | 33 | QString phd2ServerEndpoint; | ||
34 | return "none"; | 34 | }; | ||
35 | } | 35 | | ||
36 | QString toString(uint8_t mode); | ||||
36 | } | 37 | } |