34 lines
512 B
C++
34 lines
512 B
C++
#ifndef RELAYWIDGET_H
|
|
#define RELAYWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include "relaysettingsdialog.h"
|
|
#include "relay.h"
|
|
|
|
namespace Ui {
|
|
class RelayWidget;
|
|
}
|
|
|
|
class RelayWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
Relay* relay_;
|
|
|
|
private slots:
|
|
void showSettingsDialog();
|
|
|
|
public:
|
|
explicit RelayWidget(Relay* relay_, QWidget *parent = nullptr);
|
|
Relay* getRelay();
|
|
~RelayWidget();
|
|
|
|
public slots:
|
|
void stateChanged(bool state);
|
|
|
|
private:
|
|
Ui::RelayWidget *ui;
|
|
};
|
|
|
|
#endif // RELAYWIDGET_H
|