#ifndef RELAYSETTING_H #define RELAYSETTING_H #include #include "data_config.h" #include "MyTcpClient.h" 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(); void readData(const QByteArray&); private: Ui::RelaySetting *ui; QMap map_slot_config; MyTcpClient* m_tcpClient; void readJsonFile(const QString &filePath); }; #endif // RELAYSETTING_H