blob: c621e99f1e2687940325981be1bb040b89862a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef WEBVIEWPAGE_H
#define WEBVIEWPAGE_H
#include "wizard/abstractcredswizardpage.h"
namespace OCC {
class AbstractCredentials;
class OwncloudWizard;
class WebView;
class WebViewPage : public AbstractCredentialsWizardPage
{
Q_OBJECT
public:
WebViewPage(QWidget *parent = nullptr);
~WebViewPage();
void initializePage() override;
void cleanupPage() override;
int nextId() const override;
bool isComplete() const override;
AbstractCredentials* getCredentials() const override;
void setConnected();
signals:
void connectToOCUrl(const QString&);
private slots:
void urlCatched(QString user, QString pass, QString host);
private:
void resizeWizard();
bool tryToSetWizardSize(int width, int height);
OwncloudWizard *_ocWizard;
WebView *_webView;
QString _user;
QString _pass;
bool _useSystemProxy;
QSize _originalWizardSize;
};
}
#endif // WEBVIEWPAGE_H
|