TSI_Config/relaysetting.h

34 lines
627 B
C
Raw Normal View History

2025-03-09 11:53:05 +08:00
#ifndef RELAYSETTING_H
#define RELAYSETTING_H
#include <QWidget>
#include "data_config.h"
2025-05-14 23:14:50 +08:00
#include "MyTcpClient.h"
2025-03-09 11:53:05 +08:00
namespace Ui {
class RelaySetting;
}
class RelaySetting : public QWidget
{
Q_OBJECT
public:
explicit RelaySetting(QWidget *parent = nullptr);
~RelaySetting();
private slots:
void onRadioButtonClicked(QAbstractButton *button);
void on_pushButton_status_clicked();
2025-05-14 23:14:50 +08:00
void readData(const QByteArray&);
2025-03-09 11:53:05 +08:00
private:
Ui::RelaySetting *ui;
QMap<int,SlotConfig> map_slot_config;
2025-05-14 23:14:50 +08:00
MyTcpClient* m_tcpClient;
2025-03-09 11:53:05 +08:00
void readJsonFile(const QString &filePath);
};
#endif // RELAYSETTING_H