代码拉取完成,页面将自动刷新
#ifndef NETWORKSETTING_H
#define NETWORKSETTING_H
#include <QWidget>
#include <QNetworkInterface>
#include <QList>
#include <QProcess>
#include <QFile>
#include <QMessageBox>
#include <QLineEdit>
#include <QRadioButton>
#include "common.h"
#include "datadictionary.h"
#define NET_INTERFACE_PATH "/etc/network/interfaces"
namespace Ui {
class NetworkSetting;
}
class NetworkSetting : public QWidget
{
Q_OBJECT
public:
explicit NetworkSetting(QWidget *parent = nullptr);
~NetworkSetting();
typedef enum {
CAR_BUTTON_RED = 0,
CAR_BUTTON_WHITE,
CAR_BUTTON_GREEN,
}Color_t;
private slots:
void on_DeviceName_currentIndexChanged(const QString &arg1);
void on_StaticBt_clicked();
void on_DhcpBt_clicked();
void on_ok_clicked();
void on_IpTestButton_clicked();
void on_IpLine_returnPressed();
void MisDataChange(MisDataIndex_t Index);
private:
void showEvent(QShowEvent *event);
void SetQRadioButtonStyleSheet(QRadioButton *button,Color_t C);
void AddDevice();
void ShowAttr(QString Name);
void StaticIpSetting();
void DhcpSetting();
void SetToolEnable(QWidget *w);
void SetToolDisable(QWidget *w);
private:
QFile *m_NetFile;
bool m_FileExists;
QStringList m_NetInfoList;
DataDictionary *m_DataDictionary;
bool m_NetReboot;
private:
Ui::NetworkSetting *ui;
};
#endif // NETWORKSETTING_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。