mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
36 lines
748 B
C++
36 lines
748 B
C++
#ifndef SAMLLOGINWINDOW_H
|
|
#define SAMLLOGINWINDOW_H
|
|
|
|
#include <QtCore/QMap>
|
|
#include <QtGui/QCloseEvent>
|
|
#include <QtWidgets/QDialog>
|
|
|
|
#include "enhancedwebview.h"
|
|
|
|
class SAMLLoginWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SAMLLoginWindow(QWidget *parent = nullptr);
|
|
~SAMLLoginWindow();
|
|
|
|
void login(const QString samlMethod, const QString samlRequest, const QString preloingUrl);
|
|
|
|
signals:
|
|
void success(QMap<QString, QString> samlResult);
|
|
void fail(const QString msg);
|
|
|
|
private slots:
|
|
void onResponseReceived(QJsonObject params);
|
|
void onLoadFinished();
|
|
|
|
private:
|
|
EnhancedWebView *webView;
|
|
QMap<QString, QString> samlResult;
|
|
|
|
void closeEvent(QCloseEvent *event);
|
|
};
|
|
|
|
#endif // SAMLLOGINWINDOW_H
|