33 #ifndef CONNECTIONMANAGER_H
34 #define CONNECTIONMANAGER_H
41 #include <QtCore/QVector>
42 #include <QtCore/QIODevice>
43 #include <QtCore/QLinkedList>
44 #include <QPushButton>
47 #include <QMessageBox>
116 bool disconnectDevice();
117 void suspendPolling();
118 void resumePolling();
120 bool getAutoconnect();
125 void updateConnectionDropdown();
128 void deviceConnected(QIODevice *device);
129 void deviceAboutToDisconnect();
130 void deviceDisconnected();
131 void availableDevicesChanged(
const QLinkedList<Core::DevListItem> devices);
134 void telemetryConnected();
135 void telemetryDisconnected();
136 void telemetryUpdated(
double txRate,
double rxRate);
139 void objectAdded(QObject *obj);
140 void aboutToRemoveObject(QObject *obj);
142 void onConnectClicked();
145 void onConnectionDestroyed(QObject *obj);
146 void connectionsCallBack();
147 void reconnectSlot();
148 void reconnectCheckSlot();
169 bool connectDevice();
174 QTimer *reconnectCheck;
181 #endif // CONNECTIONMANAGER_H
QList< IConnection * > m_connectionsList
QIODevice * getCurrentConnection()
TelemetryMonitorWidget * getTelemetryMonitorWidget()
QLinkedList< DevListItem > m_devList
QPushButton * m_connectBtn
QComboBox * m_availableDevList
DevListItem getCurrentDevice()
DevListItem m_connectionDevice
bool operator!=(const DevListItem &rhs)
QLinkedList< DevListItem > getAvailableDevices()
bool operator==(const DevListItem &rhs)
IPConnection * connection
DevListItem m_lastManualConnect
QPointer< IDevice > device
DevListItem(IConnection *c, IDevice *d)
TelemetryMonitorWidget * m_monitorWidget
virtual QString shortName()