ISD::GenericDevice
#include <indistd.h>
Properties | |
bool | connected |
uint32_t | driverInterface |
QString | driverVersion |
QString | name |
Properties inherited from QObject | |
objectName | |
Signals | |
void | Connected () |
void | Disconnected () |
void | interfaceDefined () |
void | messageUpdated (int messageID) |
void | newAdaptiveOptics (AdaptiveOptics *device) |
void | newAuxiliary (Auxiliary *device) |
void | newCamera (Camera *device) |
void | newCorrelator (Correlator *device) |
void | newDetector (Detector *device) |
void | newDome (Dome *device) |
void | newDustCap (DustCap *device) |
void | newFilterWheel (FilterWheel *device) |
void | newFocuser (Focuser *device) |
void | newGPS (GPS *device) |
void | newGuider (Guider *device) |
void | newLightBox (LightBox *device) |
void | newMount (Mount *device) |
void | newRotator (Rotator *device) |
void | newSpectrograph (Spectrograph *device) |
void | newWeather (Weather *device) |
void | propertyDefined (INDI::Property prop) |
void | propertyDeleted (INDI::Property prop) |
void | propertyUpdated (INDI::Property prop) |
void | ready () |
void | systemPortDetected () |
Public Member Functions | |
GenericDevice (DeviceInfo &idv, ClientManager *cm, QObject *parent=nullptr) | |
Q_SCRIPTABLE Q_NOREPLY void | Connect () |
Q_SCRIPTABLE Q_NOREPLY void | Disconnect () |
bool | findConcreteDevice (uint32_t interface, QSharedPointer< ConcreteDevice > &device) |
ISD::AdaptiveOptics * | getAdaptiveOptics () |
ISD::Auxiliary * | getAuxiliary () |
virtual INDI::BaseDevice | getBaseDevice () const |
ISD::Camera * | getCamera () |
ClientManager * | getClientManager () const |
ISD::Correlator * | getCorrelator () |
ISD::Detector * | getDetector () |
virtual DeviceInfo * | getDeviceInfo () const |
virtual const QString & | getDeviceName () const |
ISD::Dome * | getDome () |
virtual const QSharedPointer< DriverInfo > & | getDriverInfo () const |
virtual uint32_t | getDriverInterface () |
virtual QString | getDriverVersion () |
ISD::DustCap * | getDustCap () |
ISD::FilterWheel * | getFilterWheel () |
ISD::Focuser * | getFocuser () |
ISD::GPS * | getGPS () |
ISD::Guider * | getGuider () |
virtual bool | getJSONBLOB (const QString &propName, const QString &elementName, QJsonObject &blobObject) |
virtual bool | getJSONProperty (const QString &propName, QJsonObject &propObject, bool compact) |
ISD::LightBox * | getLightBox () |
virtual bool | getMinMaxStep (const QString &propName, const QString &elementName, double *min, double *max, double *step) |
ISD::Mount * | getMount () |
virtual IPerm | getPermission (const QString &propName) |
virtual Properties | getProperties () |
virtual INDI::Property | getProperty (const QString &propName) |
ISD::Rotator * | getRotator () |
ISD::Spectrograph * | getSpectrograph () |
virtual IPState | getState (const QString &propName) |
ISD::Weather * | getWeather () |
virtual bool | isConnected () const |
virtual bool | isReady () const |
virtual bool | processBLOB (INDI::Property prop) override |
virtual void | processLight (INDI::Property prop) override |
virtual void | processMessage (int messageID) override |
virtual void | processNumber (INDI::Property prop) override |
virtual void | processSwitch (INDI::Property prop) override |
virtual void | processText (INDI::Property prop) override |
virtual void | registerProperty (INDI::Property prop) override |
virtual void | removeProperty (INDI::Property prop) override |
void | sendNewNumber (INDI::Property prop) |
void | sendNewProperty (INDI::Property prop) |
void | sendNewSwitch (INDI::Property prop) |
void | sendNewText (INDI::Property prop) |
virtual bool | setConfig (INDIConfig tConfig) |
virtual bool | setJSONProperty (const QString &propName, const QJsonArray &propElements) |
bool | setProperty (QObject *) |
virtual void | updateProperty (INDI::Property prop) override |
Public Member Functions inherited from ISD::GDInterface | |
GDInterface (QObject *parent) | |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Protected Slots | |
virtual void | resetWatchdog () |
Protected Member Functions | |
void | checkLocationUpdate () |
void | checkTimeUpdate () |
void | createDeviceInit () |
bool | generateDevices () |
void | handleTimeout () |
void | updateLocation (double longitude=-1, double latitude=-1, double elevation=-1) |
void | updateTime (const QString &iso8601=QString(), const QString &utcOffset=QString()) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
QMap< uint32_t, QSharedPointer< ConcreteDevice > > | m_ConcreteDevices |
uint32_t | m_DriverInterface { 0 } |
QString | m_DriverVersion |
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Detailed Description
GenericDevice is the Generic Device for INDI devices.
When a new INDI device is created in INDIListener, it gets created as a GenericDevice initially. If the device registers a standard property that is a key property to a device type family (e.g. Number property EQUATORIAL_EOD_COORD signifies a Telescope device), then the specialized version of the device is extended via the Decorator Pattern.
GenericDevice handles common functions shared across many devices such as time and location handling, configuration processing, retrieving information about properties, driver info..etc.
Property Documentation
◆ connected
◆ driverInterface
◆ driverVersion
◆ name
Constructor & Destructor Documentation
◆ GenericDevice()
|
explicit |
Definition at line 54 of file indistd.cpp.
◆ ~GenericDevice()
|
overridevirtual |
Definition at line 108 of file indistd.cpp.
Member Function Documentation
◆ checkLocationUpdate()
|
protected |
Definition at line 140 of file indistd.cpp.
◆ checkTimeUpdate()
|
protected |
Definition at line 127 of file indistd.cpp.
◆ Connect()
void ISD::GenericDevice::Connect | ( | ) |
Definition at line 804 of file indistd.cpp.
◆ createDeviceInit()
|
protected |
Definition at line 703 of file indistd.cpp.
◆ Disconnect()
void ISD::GenericDevice::Disconnect | ( | ) |
Definition at line 809 of file indistd.cpp.
◆ findConcreteDevice()
bool ISD::GenericDevice::findConcreteDevice | ( | uint32_t | interface, |
QSharedPointer< ConcreteDevice > & | device ) |
Definition at line 1062 of file indistd.cpp.
◆ generateDevices()
|
protected |
generateDevices Generate concrete devices based on DRIVER_INTERFACE
- Returns
- True if at least one device is generated, false otherwise.
Definition at line 1184 of file indistd.cpp.
◆ getAdaptiveOptics()
ISD::AdaptiveOptics * ISD::GenericDevice::getAdaptiveOptics | ( | ) |
Definition at line 1128 of file indistd.cpp.
◆ getAuxiliary()
ISD::Auxiliary * ISD::GenericDevice::getAuxiliary | ( | ) |
Definition at line 1177 of file indistd.cpp.
◆ getBaseDevice()
|
inlinevirtual |
◆ getCamera()
ISD::Camera * ISD::GenericDevice::getCamera | ( | ) |
Definition at line 1079 of file indistd.cpp.
◆ getClientManager()
|
inline |
◆ getCorrelator()
ISD::Correlator * ISD::GenericDevice::getCorrelator | ( | ) |
Definition at line 1170 of file indistd.cpp.
◆ getDetector()
ISD::Detector * ISD::GenericDevice::getDetector | ( | ) |
Definition at line 1149 of file indistd.cpp.
◆ getDeviceInfo()
|
inlinevirtual |
◆ getDeviceName()
|
virtual |
Definition at line 166 of file indistd.cpp.
◆ getDome()
ISD::Dome * ISD::GenericDevice::getDome | ( | ) |
Definition at line 1107 of file indistd.cpp.
◆ getDriverInfo()
|
inlinevirtual |
◆ getDriverInterface()
|
inlinevirtual |
◆ getDriverVersion()
|
inlinevirtual |
◆ getDustCap()
ISD::DustCap * ISD::GenericDevice::getDustCap | ( | ) |
Definition at line 1135 of file indistd.cpp.
◆ getFilterWheel()
ISD::FilterWheel * ISD::GenericDevice::getFilterWheel | ( | ) |
Definition at line 1100 of file indistd.cpp.
◆ getFocuser()
ISD::Focuser * ISD::GenericDevice::getFocuser | ( | ) |
Definition at line 1093 of file indistd.cpp.
◆ getGPS()
ISD::GPS * ISD::GenericDevice::getGPS | ( | ) |
Definition at line 1114 of file indistd.cpp.
◆ getGuider()
ISD::Guider * ISD::GenericDevice::getGuider | ( | ) |
Definition at line 1086 of file indistd.cpp.
◆ getJSONBLOB()
|
virtual |
Definition at line 1031 of file indistd.cpp.
◆ getJSONProperty()
|
virtual |
Definition at line 994 of file indistd.cpp.
◆ getLightBox()
ISD::LightBox * ISD::GenericDevice::getLightBox | ( | ) |
Definition at line 1142 of file indistd.cpp.
◆ getMinMaxStep()
|
virtual |
Definition at line 881 of file indistd.cpp.
◆ getMount()
ISD::Mount * ISD::GenericDevice::getMount | ( | ) |
Definition at line 1072 of file indistd.cpp.
◆ getPermission()
|
virtual |
Definition at line 906 of file indistd.cpp.
◆ getProperties()
|
inlinevirtual |
◆ getProperty()
|
virtual |
Definition at line 911 of file indistd.cpp.
◆ getRotator()
ISD::Rotator * ISD::GenericDevice::getRotator | ( | ) |
Definition at line 1156 of file indistd.cpp.
◆ getSpectrograph()
ISD::Spectrograph * ISD::GenericDevice::getSpectrograph | ( | ) |
Definition at line 1163 of file indistd.cpp.
◆ getState()
|
virtual |
Definition at line 901 of file indistd.cpp.
◆ getWeather()
ISD::Weather * ISD::GenericDevice::getWeather | ( | ) |
Definition at line 1121 of file indistd.cpp.
◆ handleTimeout()
|
protected |
Definition at line 114 of file indistd.cpp.
◆ isConnected()
|
inlinevirtual |
◆ isReady()
|
inlinevirtual |
◆ processBLOB()
|
overridevirtual |
processBLOB Process Binary BLOB
- Parameters
-
bp pointer to binary blob.
- Returns
- Return true of BLOB was successfully processed. If a concrete device does not process the blob, it should return false to allow sibling or parent devices to process the blob.
Implements ISD::GDInterface.
Definition at line 551 of file indistd.cpp.
◆ processLight()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 541 of file indistd.cpp.
◆ processMessage()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 546 of file indistd.cpp.
◆ processNumber()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 355 of file indistd.cpp.
◆ processSwitch()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 311 of file indistd.cpp.
◆ processText()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 453 of file indistd.cpp.
◆ registerProperty()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 171 of file indistd.cpp.
◆ removeProperty()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 306 of file indistd.cpp.
◆ resetWatchdog
|
protectedvirtualslot |
Definition at line 1053 of file indistd.cpp.
◆ sendNewNumber()
void ISD::GenericDevice::sendNewNumber | ( | INDI::Property | prop | ) |
Send new Number command to server.
◆ sendNewProperty()
void ISD::GenericDevice::sendNewProperty | ( | INDI::Property | prop | ) |
Definition at line 1639 of file indistd.cpp.
◆ sendNewSwitch()
void ISD::GenericDevice::sendNewSwitch | ( | INDI::Property | prop | ) |
Send new Switch command to server.
◆ sendNewText()
void ISD::GenericDevice::sendNewText | ( | INDI::Property | prop | ) |
Send new Text command to server.
◆ setConfig()
|
virtual |
Definition at line 661 of file indistd.cpp.
◆ setJSONProperty()
|
virtual |
Definition at line 916 of file indistd.cpp.
◆ setProperty()
bool ISD::GenericDevice::setProperty | ( | QObject * | setPropCommand | ) |
Definition at line 814 of file indistd.cpp.
◆ updateLocation()
|
protected |
Definition at line 752 of file indistd.cpp.
◆ updateProperty()
|
overridevirtual |
Implements ISD::GDInterface.
Definition at line 282 of file indistd.cpp.
◆ updateTime()
|
protected |
Definition at line 714 of file indistd.cpp.
Member Data Documentation
◆ m_ConcreteDevices
|
protected |
◆ m_DriverInterface
|
protected |
◆ m_DriverVersion
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.