#ifndef DEVICEPAGE_H #define DEVICEPAGE_H #include #include "../services/deviceservice.h" namespace Ui { class DevicePage; } class QLabel; class VisionService; class DevicePage : public QWidget { Q_OBJECT public: explicit DevicePage(QWidget *parent = nullptr); ~DevicePage(); void attachVisionService(VisionService *service); public slots: void updateStatus(const DeviceStatus &status); void handleCommunicationError(const QString &error); private: void setupTable(); void setRow(int row, const QStringList &values); void updateVisionStatus(bool ready, const QString &session); Ui::DevicePage *ui; QLabel *communicationErrorLabel; }; #endif // DEVICEPAGE_H