summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-15 09:32:55 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-15 09:32:55 (GMT)
commitb57daae071dac84d340feb6c8a724cdb22457d28 (patch)
treeb07e0e04dc4b509beac928a596d6a0c6dd5955c6
parent4c66d46786b5ccd78a0760607140e24cc288e77b (diff)
Add getStatus function
-rw-r--r--kstars/ekos/focus/focus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kstars/ekos/focus/focus.h b/kstars/ekos/focus/focus.h
index 3681baa..eb5e6a9 100644
--- a/kstars/ekos/focus/focus.h
+++ b/kstars/ekos/focus/focus.h
@@ -139,6 +139,13 @@ public:
*/
Q_SCRIPTABLE Q_NOREPLY void resetFrame();
+ /** DBUS interface function.
+ * Return state of Focuser modue (Ekos::FocusState)
+ */
+
+ Q_SCRIPTABLE int getStatus() { return state; }
+
+
/** @}*/
/**