Files
GUI/src/network/networkcfgdialog.h

35 lines
584 B
C
Raw Normal View History

#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