12#include <KLocalizedString>
14#include "indiconcretedevice.h"
27 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.kstars.INDI.DustCap")
28 Q_PROPERTY(ISD::DustCap::Status status READ status NOTIFY newStatus)
29 Q_PROPERTY(ISD::ParkStatus parkStatus READ parkStatus NOTIFY newParkStatus)
34 virtual ~DustCap()
override =
default;
44 virtual void processSwitch(INDI::Property prop)
override;
46 Q_SCRIPTABLE
virtual bool canPark();
48 Q_SCRIPTABLE
virtual bool isParked();
50 Q_SCRIPTABLE
virtual bool isUnParked();
52 static const QString getStatusString(Status status,
bool translated =
true);
59 Q_SCRIPTABLE
bool park();
65 Q_SCRIPTABLE
bool unpark();
67 Q_SCRIPTABLE Status status()
71 ISD::ParkStatus parkStatus()
const
77 void newStatus(ISD::DustCap::Status status);
78 void newParkStatus(ISD::ParkStatus status);
81 Status m_Status { CAP_IDLE };
82 ParkStatus m_ParkStatus { PARK_UNKNOWN };
88Q_DECLARE_METATYPE(ISD::DustCap::Status)
The ConcreteDevice class.
Handles operation of a remotely controlled dust cover cap.
Q_SCRIPTABLE bool unpark()
UnPark Open dust cap.
Q_SCRIPTABLE bool park()
Park Close dust cap.
GenericDevice is the Generic Device for INDI devices.
ISD is a collection of INDI Standard Devices.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.