mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
Adds "samlUserAgent" key to settings dialog. If left blank, prior behavior is unchanged. If provided, the WebView Profile is adjusted with ::setHttpUserAgent() before opening the portal's SAML page.
35 lines
612 B
C++
35 lines
612 B
C++
#ifndef SETTINGSDIALOG_H
|
|
#define SETTINGSDIALOG_H
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
namespace Ui {
|
|
class SettingsDialog;
|
|
}
|
|
|
|
class SettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsDialog(QWidget *parent = nullptr);
|
|
~SettingsDialog();
|
|
|
|
void setExtraArgs(QString extraArgs);
|
|
QString extraArgs();
|
|
|
|
void setClientos(QString clientos);
|
|
QString clientos();
|
|
|
|
void setOsVersion(QString osVersion);
|
|
QString osVersion();
|
|
|
|
void setSamlUserAgent(QString samlUserAgent);
|
|
QString samlUserAgent();
|
|
|
|
private:
|
|
Ui::SettingsDialog *ui;
|
|
};
|
|
|
|
#endif // SETTINGSDIALOG_H
|