tidy up
This commit is contained in:
parent
47e6d46b68
commit
5c6c5fd669
@ -51,8 +51,6 @@ class IntegrationPluginKeba : public IntegrationPlugin
|
|||||||
public:
|
public:
|
||||||
explicit DevicePluginKeba();
|
explicit DevicePluginKeba();
|
||||||
|
|
||||||
void init() override;
|
|
||||||
|
|
||||||
void discoverDevices(DeviceDiscoveryInfo *info) override;
|
void discoverDevices(DeviceDiscoveryInfo *info) override;
|
||||||
void setupDevice(DeviceSetupInfo *info) override;
|
void setupDevice(DeviceSetupInfo *info) override;
|
||||||
|
|
||||||
|
|||||||
@ -115,25 +115,23 @@ public:
|
|||||||
int serialNumber();
|
int serialNumber();
|
||||||
|
|
||||||
void setAddress(QHostAddress address);
|
void setAddress(QHostAddress address);
|
||||||
bool getDeviceConnectedStatus();
|
|
||||||
bool getDeviceBlockedStatus();
|
|
||||||
|
|
||||||
QUuid enableOutput(bool state);
|
QUuid enableOutput(bool state);
|
||||||
QUuid setMaxAmpere(int milliAmpere);
|
QUuid setMaxAmpere(int milliAmpere);
|
||||||
|
QUuid unlockCharger();
|
||||||
|
QUuid displayMessage(const QByteArray &message);
|
||||||
|
|
||||||
void getDeviceInformation();
|
void getDeviceInformation();
|
||||||
void getReport1();
|
void getReport1();
|
||||||
void getReport2();
|
void getReport2();
|
||||||
void getReport3();
|
void getReport3();
|
||||||
QUuid unlockCharger();
|
|
||||||
QUuid displayMessage(const QByteArray &message);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QUdpSocket *m_udpSocket = nullptr;
|
QUdpSocket *m_udpSocket = nullptr;
|
||||||
QHostAddress m_address;
|
QHostAddress m_address;
|
||||||
QByteArrayList m_commandList;
|
QByteArrayList m_commandList;
|
||||||
bool m_deviceBlocked = false;
|
bool m_deviceBlocked = false;
|
||||||
bool m_connected = false;
|
|
||||||
QTimer *m_requestTimeoutTimer = nullptr;
|
QTimer *m_requestTimeoutTimer = nullptr;
|
||||||
int m_serialNumber;
|
int m_serialNumber;
|
||||||
QList<QUuid> m_pendingRequests;
|
QList<QUuid> m_pendingRequests;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user