30 lines
529 B
C++
30 lines
529 B
C++
#ifndef DEVICEPAGE_H
|
|
#define DEVICEPAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "../services/deviceservice.h"
|
|
|
|
namespace Ui { class DevicePage; }
|
|
|
|
class DevicePage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DevicePage(QWidget *parent = nullptr);
|
|
~DevicePage();
|
|
|
|
public slots:
|
|
void updateStatus(const DeviceStatus &status);
|
|
void handleCommunicationError(const QString &error);
|
|
|
|
private:
|
|
void setupTable();
|
|
void setRow(int row, const QStringList &values);
|
|
|
|
Ui::DevicePage *ui;
|
|
};
|
|
|
|
#endif // DEVICEPAGE_H
|