• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • edu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • ISD
  • DustCap
Public Types | Public Slots | Signals | Public Member Functions | List of all members
ISD::DustCap Class Reference

#include <indicap.h>

Inheritance diagram for ISD::DustCap:
Inheritance graph
[legend]

Public Types

enum  Status {
  CAP_IDLE, CAP_PARKING, CAP_UNPARKING, CAP_PARKED,
  CAP_ERROR
}
 

Public Slots

static const QString getStatusString (Status status)
 
bool Park ()
 
bool SetBrightness (uint16_t val)
 
bool SetLightEnabled (bool enable)
 
Status status ()
 
bool UnPark ()
 
- Public Slots inherited from ISD::DeviceDecorator
virtual bool Connect () override
 
virtual bool Disconnect () override
 
virtual bool runCommand (int command, void *ptr=nullptr) override
 
virtual bool setProperty (QObject *) override
 
- Public Slots inherited from ISD::GDInterface
virtual bool Connect ()=0
 
virtual bool Disconnect ()=0
 
virtual bool runCommand (int command, void *ptr=nullptr)=0
 
virtual bool setProperty (QObject *)=0
 

Signals

void newStatus (Status status)
 
void ready ()
 
- Signals inherited from ISD::GDInterface
void BLOBUpdated (IBLOB *bp)
 
void Connected ()
 
void Disconnected ()
 
void interfaceDefined ()
 
void lightUpdated (ILightVectorProperty *lvp)
 
void messageUpdated (int messageID)
 
void numberUpdated (INumberVectorProperty *nvp)
 
void propertyDefined (INDI::Property *prop)
 
void propertyDeleted (INDI::Property *prop)
 
void switchUpdated (ISwitchVectorProperty *svp)
 
void systemPortDetected ()
 
void textUpdated (ITextVectorProperty *tvp)
 

Public Member Functions

 DustCap (GDInterface *iPtr)
 
virtual ~DustCap () override=default
 
virtual bool canPark ()
 
DeviceFamily getType () override
 
virtual bool hasLight ()
 
virtual bool isLightOn ()
 
virtual bool isParked ()
 
virtual bool isUnParked ()
 
void processLight (ILightVectorProperty *lvp) override
 
void processNumber (INumberVectorProperty *nvp) override
 
void processSwitch (ISwitchVectorProperty *svp) override
 
void processText (ITextVectorProperty *tvp) override
 
void registerProperty (INDI::Property *prop) override
 
- Public Member Functions inherited from ISD::DeviceDecorator
 DeviceDecorator (GDInterface *iPtr)
 
virtual ~DeviceDecorator () override
 
virtual INDI::BaseDevice * getBaseDevice () override
 
DeviceInfo * getDeviceInfo () override
 
const char * getDeviceName () override
 
DriverInfo * getDriverInfo () override
 
uint32_t getDriverInterface () override
 
QString getDriverVersion () override
 
QJsonObject getJSONProperty (const QString &propName, bool compact) override
 
bool getMinMaxStep (const QString &propName, const QString &elementName, double *min, double *max, double *step) override
 
IPerm getPermission (const QString &propName) override
 
QList< INDI::Property * > getProperties () override
 
INDI::Property * getProperty (const QString &propName) override
 
IPState getState (const QString &propName) override
 
virtual bool isConnected () override
 
virtual void processBLOB (IBLOB *bp) override
 
virtual void processMessage (int messageID) override
 
virtual void removeProperty (INDI::Property *prop) override
 
virtual bool setConfig (INDIConfig tConfig) override
 
bool setJSONProperty (const QString &propName, const QJsonArray &propValue) override
 
- Public Member Functions inherited from ISD::GDInterface
virtual ~GDInterface ()=default
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
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)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Protected Attributes inherited from ISD::DeviceDecorator
INDI::BaseDevice * baseDevice { nullptr }
 
ClientManager * clientManager { nullptr }
 
GDInterface * interfacePtr { nullptr }
 
- Protected Attributes inherited from ISD::GDInterface
uint32_t driverInterface { 0 }
 
QString driverVersion
 
DeviceFamily dType { KSTARS_CCD }
 
QList< INDI::Property * > properties
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Handles operation of a remotely controlled dust cover cap.

Author
Jasem Mutlaq

Definition at line 25 of file indicap.h.

Member Enumeration Documentation

enum ISD::DustCap::Status
Enumerator
CAP_IDLE 
CAP_PARKING 
CAP_UNPARKING 
CAP_PARKED 
CAP_ERROR 

Definition at line 32 of file indicap.h.

Constructor & Destructor Documentation

ISD::DustCap::DustCap ( GDInterface *  iPtr)
explicit

Definition at line 20 of file indicap.cpp.

virtual ISD::DustCap::~DustCap ( )
overridevirtualdefault

Member Function Documentation

bool ISD::DustCap::canPark ( )
virtual

Reimplemented in ISD::LightBox.

Definition at line 99 of file indicap.cpp.

const QString ISD::DustCap::getStatusString ( DustCap::Status  status)
staticslot

Definition at line 230 of file indicap.cpp.

DeviceFamily ISD::DustCap::getType ( )
inlineoverridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 46 of file indicap.h.

bool ISD::DustCap::hasLight ( )
virtual

Reimplemented in ISD::LightBox.

Definition at line 167 of file indicap.cpp.

bool ISD::DustCap::isLightOn ( )
virtual

Definition at line 177 of file indicap.cpp.

bool ISD::DustCap::isParked ( )
virtual

Definition at line 109 of file indicap.cpp.

bool ISD::DustCap::isUnParked ( )
virtual

Definition at line 119 of file indicap.cpp.

void ISD::DustCap::newStatus ( Status  status)
signal
bool ISD::DustCap::Park ( )
slot

Park Close dust cap.

Returns
True if operation is successful, false otherwise.

Definition at line 129 of file indicap.cpp.

void ISD::DustCap::processLight ( ILightVectorProperty *  lvp)
overridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 41 of file indicap.cpp.

void ISD::DustCap::processNumber ( INumberVectorProperty *  nvp)
overridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 46 of file indicap.cpp.

void ISD::DustCap::processSwitch ( ISwitchVectorProperty *  svp)
overridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 51 of file indicap.cpp.

void ISD::DustCap::processText ( ITextVectorProperty *  tvp)
overridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 94 of file indicap.cpp.

void ISD::DustCap::ready ( )
signal
void ISD::DustCap::registerProperty ( INDI::Property *  prop)
overridevirtual

Reimplemented from ISD::DeviceDecorator.

Definition at line 33 of file indicap.cpp.

bool ISD::DustCap::SetBrightness ( uint16_t  val)
slot

SetBrightness Set light box brightness levels if dimmable.

Parameters
valValue of brightness level.
Returns
True if operation is successful, false otherwise.

Definition at line 217 of file indicap.cpp.

bool ISD::DustCap::SetLightEnabled ( bool  enable)
slot

SetLightEnabled Turn on/off light.

Parameters
enabletrue to turn on, false to turn off
Returns
True if operation is successful, false otherwise.

Definition at line 192 of file indicap.cpp.

Status ISD::DustCap::status ( )
inlineslot

Definition at line 83 of file indicap.h.

bool ISD::DustCap::UnPark ( )
slot

UnPark Open dust cap.

Returns
True if operation is successful, false otherwise.

Definition at line 148 of file indicap.cpp.


The documentation for this class was generated from the following files:
  • indicap.h
  • indicap.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 8 2019 03:55:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal