基本完成网络设置模块,还有一些细节需要完善。
This commit is contained in:
34
src/network/networkcfgdialog.h
Normal file
34
src/network/networkcfgdialog.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef NETWORKCFGDIALOG_H
|
||||
#define NETWORKCFGDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class networkCfgDialog;
|
||||
}
|
||||
|
||||
class NetCfgTableModel;
|
||||
class networkCfgDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void setShadow(QDialog* dialog);
|
||||
explicit networkCfgDialog(QWidget* parent = nullptr);
|
||||
~networkCfgDialog();
|
||||
|
||||
void loadData();
|
||||
void applyData();
|
||||
|
||||
|
||||
private:
|
||||
const char* boolToStr(bool b)
|
||||
{
|
||||
return b ? "sucess" : "failed";
|
||||
}
|
||||
NetCfgTableModel* model_addr = nullptr;
|
||||
NetCfgTableModel* model_route = nullptr;
|
||||
Ui::networkCfgDialog* ui;
|
||||
};
|
||||
|
||||
#endif // NetworkCfgDialog_H
|
||||
Reference in New Issue
Block a user