mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
46 lines
923 B
C++
46 lines
923 B
C++
#ifndef SETTINGWINDOW_H
|
|
#define SETTINGWINDOW_H
|
|
|
|
#include <QDialog>
|
|
#include <QSettings>
|
|
#include "ui_settingwindow.h"
|
|
#include "extrasettingwindow/extrasettingwindow.h"
|
|
#include "authinfowindow/authinfowindow.h"
|
|
|
|
namespace Ui
|
|
{
|
|
class SettingWindow;
|
|
}
|
|
|
|
class SettingWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingWindow(QWidget *parent = nullptr, QSettings *settings = nullptr, const QString &profileId = "");
|
|
|
|
~SettingWindow() override;
|
|
|
|
private:
|
|
void loadSettings();
|
|
void applySettings();
|
|
bool isAuthSettingChanged();
|
|
bool shouldCheckCredential();
|
|
|
|
Ui::SettingWindow *ui;
|
|
|
|
QSettings *settings;
|
|
QString profileId;
|
|
|
|
ExtraSettingWindow *extraSettingWindow;
|
|
AuthInfoWindow *authInfoWindow;
|
|
|
|
QString tcpPortForwarding;
|
|
QString udpPortForwarding;
|
|
QString customDNS;
|
|
QString customProxyDomain;
|
|
QString extraArguments;
|
|
};
|
|
|
|
#endif //SETTINGWINDOW_H
|