1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
networksetting.h 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助