27 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.kstars.INDI.Dome")
29 Q_PROPERTY(
bool canAbsoluteMove READ canAbsoluteMove)
30 Q_PROPERTY(
bool canRelativeMove READ canRelativeMove)
33 Q_PROPERTY(ISD::Dome::Status status READ status NOTIFY newStatus)
34 Q_PROPERTY(ISD::Dome::ShutterStatus shutterStatus READ shutterStatus NOTIFY newShutterStatus)
35 Q_PROPERTY(ISD::ParkStatus parkStatus READ parkStatus NOTIFY newParkStatus)
44 return m_Parent->getDeviceName();
49 return m_Parent->isConnected();
87 void processSwitch(INDI::Property prop)
override;
88 void processNumber(INDI::Property prop)
override;
89 void registerProperty(INDI::Property prop)
override;
91 Q_SCRIPTABLE
bool canPark()
const
95 Q_SCRIPTABLE
bool canAbsoluteMove()
const
99 Q_SCRIPTABLE
bool canRelativeMove()
const
103 Q_SCRIPTABLE
bool canAbort()
const
107 Q_SCRIPTABLE
bool isParked()
const
109 return m_ParkStatus == PARK_PARKED;
111 bool isMoving()
const;
116 Q_SCRIPTABLE
double position()
const;
124 bool setRelativePosition(
double position);
126 bool moveDome(DomeDirection dir, DomeMotionCommand operation);
134 return moveDome(DOME_CW, MOTION_START);
143 return moveDome(DOME_CCW, MOTION_START);
146 Q_SCRIPTABLE
bool hasShutter()
const
157 return (canAbsoluteMove() ==
false && canRelativeMove() ==
false);
162 bool setAutoSync(
bool activate);
164 Status status()
const
168 ISD::ParkStatus parkStatus()
const
172 static const QString getStatusString (Status status,
bool translated =
true);
174 ShutterStatus shutterStatus();
175 ShutterStatus parseShutterStatus(INDI::Property prop);
177 Q_SCRIPTABLE
bool abort();
178 Q_SCRIPTABLE
bool park();
179 Q_SCRIPTABLE
bool unpark();
181 Q_SCRIPTABLE
bool controlShutter(
bool open);
184 return controlShutter(
true);
188 return controlShutter(
false);
192 void newStatus(ISD::Dome::Status status);
193 void newParkStatus(ISD::ParkStatus status);
194 void newShutterStatus(ISD::Dome::ShutterStatus status);
195 void newAutoSyncStatus(
bool enabled);
196 void positionChanged(
double degrees);
199 ParkStatus m_ParkStatus { PARK_UNKNOWN };
200 ShutterStatus m_ShutterStatus { SHUTTER_UNKNOWN };
201 Status m_Status { DOME_IDLE };
202 bool m_CanAbsMove {
false };
203 bool m_CanRelMove {
false };
204 bool m_CanPark {
false };
205 bool m_CanAbort {
false };
206 bool m_HasShutter {
false };
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)