Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/scheduler/scheduler.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 82 | { | |||
---|---|---|---|---|---|
85 | PARKWAIT_PARKING, | 85 | PARKWAIT_PARKING, | ||
86 | PARKWAIT_PARKED, | 86 | PARKWAIT_PARKED, | ||
87 | PARKWAIT_UNPARK, | 87 | PARKWAIT_UNPARK, | ||
88 | PARKWAIT_UNPARKING, | 88 | PARKWAIT_UNPARKING, | ||
89 | PARKWAIT_UNPARKED, | 89 | PARKWAIT_UNPARKED, | ||
90 | PARKWAIT_ERROR | 90 | PARKWAIT_ERROR | ||
91 | } ParkWaitStatus; | 91 | } ParkWaitStatus; | ||
92 | 92 | | |||
93 | /** @brief options what should happen if an error or abort occurs */ | ||||
94 | typedef enum | ||||
95 | { | ||||
96 | ERROR_DONT_RESTART, | ||||
97 | ERROR_RESTART_AFTER_TERMINATION, | ||||
98 | ERROR_RESTART_IMMEDIATELY | ||||
99 | } ErrorHandlingStrategy; | ||||
100 | | ||||
93 | /** @brief Columns, in the same order as UI. */ | 101 | /** @brief Columns, in the same order as UI. */ | ||
94 | typedef enum | 102 | typedef enum | ||
95 | { | 103 | { | ||
96 | SCHEDCOL_NAME = 0, | 104 | SCHEDCOL_NAME = 0, | ||
97 | SCHEDCOL_STATUS, | 105 | SCHEDCOL_STATUS, | ||
98 | SCHEDCOL_CAPTURES, | 106 | SCHEDCOL_CAPTURES, | ||
99 | SCHEDCOL_ALTITUDE, | 107 | SCHEDCOL_ALTITUDE, | ||
100 | SCHEDCOL_SCORE, | 108 | SCHEDCOL_SCORE, | ||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | |||||
219 | { | 227 | { | ||
220 | schedulerProfileCombo->setCurrentText(profile); | 228 | schedulerProfileCombo->setCurrentText(profile); | ||
221 | } | 229 | } | ||
222 | QString profile() | 230 | QString profile() | ||
223 | { | 231 | { | ||
224 | return schedulerProfileCombo->currentText(); | 232 | return schedulerProfileCombo->currentText(); | ||
225 | } | 233 | } | ||
226 | 234 | | |||
235 | /** | ||||
236 | * @brief retrieve the error handling strategy from the UI | ||||
237 | */ | ||||
238 | ErrorHandlingStrategy getErrorHandlingStrategy(); | ||||
239 | | ||||
240 | /** | ||||
241 | * @brief select the error handling strategy (no restart, restart after all terminated, restart immediately) | ||||
242 | */ | ||||
243 | void setErrorHandlingStrategy (ErrorHandlingStrategy strategy); | ||||
244 | | ||||
227 | /** @}*/ | 245 | /** @}*/ | ||
228 | 246 | | |||
229 | /** @{ */ | 247 | /** @{ */ | ||
230 | private: | 248 | private: | ||
231 | /** @internal Safeguard flag to avoid registering signals from widgets multiple times. | 249 | /** @internal Safeguard flag to avoid registering signals from widgets multiple times. | ||
232 | */ | 250 | */ | ||
233 | bool jobChangesAreWatched { false }; | 251 | bool jobChangesAreWatched { false }; | ||
234 | 252 | | |||
▲ Show 20 Lines • Show All 536 Lines • Show Last 20 Lines |