mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 02:13:32 +08:00
36 lines
617 B
C++
36 lines
617 B
C++
#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
|