Files
GUI/src/dialogs/IpSettingsDialog.h

39 lines
731 B
C
Raw Normal View History

2024-04-25 14:37:38 +08:00
#ifndef IPSETTINGSDIALOG_H
#define IPSETTINGSDIALOG_H
#include "dialogs/GUIFormBaseDialog.h"
class QLabel;
class ImageSwitch;
class ULineEdit;
class IpSettingsDialog : public GUIFormBaseDialog
{
Q_OBJECT
public:
IpSettingsDialog(QWidget* aParent = nullptr, Qt::WindowFlags aFlag = Qt::WindowFlags());
~IpSettingsDialog() override;
protected:
bool updateReferenceData() override;
private:
void init();
2024-05-08 15:20:28 +08:00
private slots:
void handleDhcpClicked();
void handleThreadStart();
void handleThreadExit();
2024-04-25 14:37:38 +08:00
private:
QLabel* mErrorText;
ImageSwitch* mDhcpButton;
ULineEdit* mIpAddress;
ULineEdit* mSubnetMask;
ULineEdit* mGateway;
2024-05-08 15:20:28 +08:00
QThread* mThread;
2024-04-25 14:37:38 +08:00
};
#endif // IPSETTINGSDIALOG_H