ClientManager

Search for usage in LXR

#include <clientmanager.h>

Inheritance diagram for ClientManager:

Signals

void failed (const QString &message)
 
void newBLOBManager (const char *device, INDI::Property prop)
 
void newINDIDevice (DeviceInfo *dv)
 
void newINDIMessage (INDI::BaseDevice dp, int messageID)
 
void newINDIProperty (INDI::Property prop)
 
void newINDIUniversalMessage (const QString &message)
 
void removeBLOBManager (const QString &device, const QString &property)
 
void removeINDIDevice (const QString &name)
 
void removeINDIProperty (INDI::Property prop)
 
void started ()
 
void terminated (const QString &message)
 
void updateINDIProperty (INDI::Property prop)
 

Public Member Functions

void appendManagedDriver (const QSharedPointer< DriverInfo > &driver)
 
int count ()
 
void disconnectAll ()
 
void establishConnection ()
 
const QSharedPointer< DriverInfo > & findDriverInfoByLabel (const QString &label)
 
const QSharedPointer< DriverInfo > & findDriverInfoByName (const QString &name)
 
const QList< QSharedPointer< DriverInfo > > & getManagedDrivers () const
 
ServerManagergetServerManager ()
 
bool isBLOBEnabled (const QString &device, const QString &property)
 
bool isDriverManaged (const QSharedPointer< DriverInfo > &driver)
 
void removeManagedDriver (const QSharedPointer< DriverInfo > &driver)
 
void setBLOBEnabled (bool enabled, const QString &device, const QString &property)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () 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< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
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 QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () 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
 
qobject_cast (const QObject *object)
 
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)
 
QThreadthread () const const
 

Protected Member Functions

virtual void newDevice (INDI::BaseDevice dp) override
 
virtual void newMessage (INDI::BaseDevice dp, int messageID) override
 
virtual void newProperty (INDI::Property prop) override
 
virtual void newUniversalMessage (std::string message) override
 
virtual void removeDevice (INDI::BaseDevice dp) override
 
virtual void removeProperty (INDI::Property prop) override
 
virtual void serverConnected () override
 
virtual void serverDisconnected (int exitCode) override
 
virtual void updateProperty (INDI::Property prop) override
 
- 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
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Types inherited from QObject
typedef  QObjectList
 
- Properties inherited from QObject
 objectName
 
- 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

ClientManager manages connection to INDI server, creation of devices, and receiving/sending properties.

ClientManager is a subclass of INDI::BaseClient class part of the INDI Library. This enables the class to communicate with INDI server and to receive notification of devices, properties, and messages.

Author
Jasem Mutlaq
Version
1.3

Definition at line 37 of file clientmanager.h.

Constructor & Destructor Documentation

◆ ClientManager()

ClientManager::ClientManager ( )

Definition at line 19 of file clientmanager.cpp.

Member Function Documentation

◆ appendManagedDriver()

void ClientManager::appendManagedDriver ( const QSharedPointer< DriverInfo > & driver)

appendManagedDriver Add driver to pool of managed drivers by this client manager.

Parameters
dvpointer to driver info instance.
Note
This function is ALWAYS called from the main KStars thread.

Definition at line 233 of file clientmanager.cpp.

◆ count()

int ClientManager::count ( )
inline

Definition at line 65 of file clientmanager.h.

◆ disconnectAll()

void ClientManager::disconnectAll ( )

disconnectAll Disconnect from server and disconnect all BLOB Managers.

Definition at line 176 of file clientmanager.cpp.

◆ establishConnection()

void ClientManager::establishConnection ( )

Definition at line 337 of file clientmanager.cpp.

◆ findDriverInfoByLabel()

const QSharedPointer< DriverInfo > & ClientManager::findDriverInfoByLabel ( const QString & label)

Definition at line 361 of file clientmanager.cpp.

◆ findDriverInfoByName()

const QSharedPointer< DriverInfo > & ClientManager::findDriverInfoByName ( const QString & name)

Definition at line 351 of file clientmanager.cpp.

◆ getManagedDrivers()

const QList< QSharedPointer< DriverInfo > > & ClientManager::getManagedDrivers ( ) const

Definition at line 332 of file clientmanager.cpp.

◆ getServerManager()

ServerManager * ClientManager::getServerManager ( )
inline

Definition at line 73 of file clientmanager.h.

◆ isBLOBEnabled()

bool ClientManager::isBLOBEnabled ( const QString & device,
const QString & property )

Definition at line 383 of file clientmanager.cpp.

◆ isDriverManaged()

bool ClientManager::isDriverManaged ( const QSharedPointer< DriverInfo > & driver)

Definition at line 25 of file clientmanager.cpp.

◆ newDevice()

void ClientManager::newDevice ( INDI::BaseDevice dp)
overrideprotectedvirtual

Definition at line 33 of file clientmanager.cpp.

◆ newMessage()

void ClientManager::newMessage ( INDI::BaseDevice dp,
int messageID )
overrideprotectedvirtual

Definition at line 222 of file clientmanager.cpp.

◆ newProperty()

void ClientManager::newProperty ( INDI::Property prop)
overrideprotectedvirtual

Definition at line 114 of file clientmanager.cpp.

◆ newUniversalMessage()

void ClientManager::newUniversalMessage ( std::string message)
overrideprotectedvirtual

Definition at line 227 of file clientmanager.cpp.

◆ removeDevice()

void ClientManager::removeDevice ( INDI::BaseDevice dp)
overrideprotectedvirtual

Definition at line 183 of file clientmanager.cpp.

◆ removeManagedDriver()

void ClientManager::removeManagedDriver ( const QSharedPointer< DriverInfo > & driver)

removeManagedDriver Remove managed driver from pool of drivers managed by this client manager.

Parameters
dvpointer to driver info instance.
Note
This function is ALWAYS called from the main KStars thread.

Definition at line 244 of file clientmanager.cpp.

◆ removeProperty()

void ClientManager::removeProperty ( INDI::Property prop)
overrideprotectedvirtual

Definition at line 132 of file clientmanager.cpp.

◆ serverConnected()

void ClientManager::serverConnected ( )
overrideprotectedvirtual

Definition at line 273 of file clientmanager.cpp.

◆ serverDisconnected()

void ClientManager::serverDisconnected ( int exitCode)
overrideprotectedvirtual

Definition at line 290 of file clientmanager.cpp.

◆ setBLOBEnabled()

void ClientManager::setBLOBEnabled ( bool enabled,
const QString & device,
const QString & property )

Definition at line 371 of file clientmanager.cpp.

◆ updateProperty()

void ClientManager::updateProperty ( INDI::Property prop)
overrideprotectedvirtual

Definition at line 127 of file clientmanager.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.