mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-22 05:34:33 +03:00
36 lines
659 B
C++
36 lines
659 B
C++
#ifndef WEBFLOWCREDENTIALSDIALOG_H
|
|
#define WEBFLOWCREDENTIALSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QUrl>
|
|
|
|
class QLabel;
|
|
class QVBoxLayout;
|
|
|
|
namespace OCC {
|
|
|
|
class WebView;
|
|
|
|
class WebFlowCredentialsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
WebFlowCredentialsDialog(QWidget *parent = nullptr);
|
|
|
|
void setUrl(const QUrl &url);
|
|
void setInfo(const QString &msg);
|
|
void setError(const QString &error);
|
|
|
|
signals:
|
|
void urlCatched(const QString user, const QString pass, const QString host);
|
|
|
|
private:
|
|
WebView *_webView;
|
|
QLabel *_errorLabel;
|
|
QLabel *_infoLabel;
|
|
QVBoxLayout *_layout;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // WEBFLOWCREDENTIALSDIALOG_H
|