6 #include <QNetworkAccessManager> 7 #include <QNetworkReply> 23 explicit UPSunit(QObject *parent = 0);
32 void newStatus(QString &, QString &);
36 QNetworkAccessManager *manager;
38 QString batteryStatus;
void replyFinished(QNetworkReply *reply)
Function to be called with reply from UPS web server.
Definition: ups.cpp:38
bool isConnected()
Return connection status.
Definition: ups.h:24
bool onBattery()
Get UPS status.
Definition: ups.h:25
A class to retrieve status from the Eaton UPS.
Definition: ups.h:20