mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
feat: support atrust version
This commit is contained in:
35
ssologinwebview/ssologinwebview.h
Normal file
35
ssologinwebview/ssologinwebview.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef SSOLOGINWEBVIEW_H
|
||||
#define SSOLOGINWEBVIEW_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QUrl>
|
||||
#include <QString>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class SsoLoginWebView;
|
||||
}
|
||||
|
||||
class SsoLoginWebView : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SsoLoginWebView(QWidget *parent = nullptr);
|
||||
~SsoLoginWebView() override;
|
||||
|
||||
void setInitialUrl(const QUrl &url);
|
||||
void setCallbackServerHost(const QString &host);
|
||||
QUrl currentUrl() const;
|
||||
|
||||
signals:
|
||||
void loginCompleted(const QString &ticket);
|
||||
|
||||
private:
|
||||
void setupConnections();
|
||||
|
||||
Ui::SsoLoginWebView *ui;
|
||||
QString callbackServerHost;
|
||||
};
|
||||
|
||||
#endif // SSOLOGINWEBVIEW_H
|
||||
Reference in New Issue
Block a user