mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Initial commit
This commit is contained in:
44
GPClient/gpclient.h
Normal file
44
GPClient/gpclient.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef GPCLIENT_H
|
||||
#define GPCLIENT_H
|
||||
|
||||
#include "gpservice_interface.h"
|
||||
#include "samlloginwindow.h"
|
||||
#include <QMainWindow>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class GPClient; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class GPClient : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GPClient(QWidget *parent = nullptr);
|
||||
~GPClient();
|
||||
|
||||
signals:
|
||||
void connectFailed();
|
||||
|
||||
private slots:
|
||||
void on_connectButton_clicked();
|
||||
void preloginResultFinished();
|
||||
|
||||
void onLoginSuccess(QJsonObject loginResult);
|
||||
|
||||
void onVPNConnected();
|
||||
void onVPNDisconnected();
|
||||
void onVPNLogAvailable(QString log);
|
||||
|
||||
private:
|
||||
Ui::GPClient *ui;
|
||||
SAMLLoginWindow *loginWindow;
|
||||
QNetworkAccessManager *networkManager;
|
||||
QNetworkReply *reply;
|
||||
com::yuezk::qt::GPService *vpn;
|
||||
|
||||
void samlLogin(const QString portal);
|
||||
};
|
||||
#endif // GPCLIENT_H
|
Reference in New Issue
Block a user