Files
GUI/src/network/networkcfgdialog.h

47 lines
815 B
C
Raw Normal View History

#ifndef NETWORKCFGDIALOG_H
#define NETWORKCFGDIALOG_H
#include <QDialog>
namespace Ui {
class networkCfgDialog;
}
class NetCfgTableModel;
2021-12-20 15:23:33 +08:00
class GUIMessageDialog;
class QThread;
class networkCfgDialog : public QDialog
{
Q_OBJECT
public:
static void setShadow(QDialog* dialog);
explicit networkCfgDialog(QWidget* parent = nullptr);
~networkCfgDialog();
void loadData();
void applyData();
2021-12-20 15:23:33 +08:00
public slots:
void afterThreadStart();
void beforeThreadExit();
private:
2021-12-20 15:23:33 +08:00
bool isModified();
const char* boolToStr(bool b)
{
return b ? "sucess" : "failed";
}
NetCfgTableModel* model_addr = nullptr;
NetCfgTableModel* model_route = nullptr;
2021-12-20 15:23:33 +08:00
GUIMessageDialog* msgDialog = nullptr;
Ui::networkCfgDialog* ui;
2021-12-20 15:23:33 +08:00
QThread* myThread = nullptr;
QString err;
QString admin_psw;
};
#endif // NetworkCfgDialog_H