9#include "ui_devmanager.h"
33 bool isConnected {
false };
34 DeviceManager *deviceManager {
nullptr };
54 IDevice(
const QString &inName,
const QString &inLabel,
const QString &inDriver,
const QString &inVersion);
58 QString getServerBuffer();
70 DeviceManager *deviceManager;
74 double focal_length { 0 };
75 double aperture { 0 };
78class DeviceManagerUI :
public QFrame,
public Ui::devManager
93 void makePortEditable(QTreeWidgetItem *selectedItem,
int column);
96class INDIDriver :
public QDialog
103 LOCAL_NAME_COLUMN = 0,
106 LOCAL_VERSION_COLUMN,
111 HOST_STATUS_COLUMN = 0,
116 explicit INDIDriver(KStars *ks);
119 bool readXMLDrivers();
120 void processXMLDriver(QString &driverName);
121 bool buildDeviceGroup(XMLEle *root,
char errmsg[]);
122 bool buildDriverElement(XMLEle *root, QTreeWidgetItem *DGroup,
int groupType,
char errmsg[]);
124 int getINDIPort(
int customPort);
125 bool isDeviceRunning(
const QString &deviceLabel);
129 void processLocalTree(IDevice::DeviceStatus dev_request);
130 void processRemoteTree(IDevice::DeviceStatus dev_request);
131 IDevice *findDeviceByLabel(
const QString &label);
134 void enableDevice(INDI_D *device);
135 void disableDevice(INDI_D *device);
137 void resizeDeviceColumn();
138 void updateLocalTab();
139 void updateClientTab();
141 void updateMenuActions();
144 void modifyINDIHost();
145 void removeINDIHost();
146 void activateRunService();
147 void activateStopService();
148 void activateHostConnection();
149 void activateHostDisconnection();
150 void newTelescopeDiscovered();
151 void newCCDDiscovered();
152 void updateCustomDrivers();
155 KStars *ksw {
nullptr };
156 DeviceManagerUI *ui {
nullptr };
157 QList<IDevice *> devices;
158 QTreeWidgetItem *lastGroup {
nullptr };
159 QTreeWidgetItem *lastDevice {
nullptr };
160 QHash<QString, QString> driversList;
161 int currentPort { 0 };
162 IDevice::XMLSource xmlSource;
INDI_D represents an INDI GUI Device.
This is the main window for KStars.
QObject * parent() const const