summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebengineview_p.h
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2014-01-06 06:30:02 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 09:50:13 +0100
commite2382d300c2620d476ba2afad210a7ed0424bf8c (patch)
tree9241c2733f8870c67f9dfe80bca3704d554af0f0 /src/webengine/api/qquickwebengineview_p.h
parent74ffcbf0cfe0235b5c09515231ff13543388d28b (diff)
Implement QQuickWebEngineLoadRequest class
It contains information about a requested load of a web page. Change-Id: Ie45706adb51ee5bce98e7af01252d9a8389db57d Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineview_p.h')
-rw-r--r--src/webengine/api/qquickwebengineview_p.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/webengine/api/qquickwebengineview_p.h b/src/webengine/api/qquickwebengineview_p.h
index 943ce0804..76fbc7853 100644
--- a/src/webengine/api/qquickwebengineview_p.h
+++ b/src/webengine/api/qquickwebengineview_p.h
@@ -48,6 +48,7 @@
QT_BEGIN_NAMESPACE
class QQuickWebEngineViewPrivate;
+class QQuickWebEngineLoadRequest;
class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineView : public QQuickItem {
Q_OBJECT
@@ -59,6 +60,8 @@ class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineView : public QQuickItem {
Q_PROPERTY(bool canGoBack READ canGoBack NOTIFY loadingStateChanged)
Q_PROPERTY(bool canGoForward READ canGoForward NOTIFY loadingStateChanged)
Q_PROPERTY(bool inspectable READ inspectable WRITE setInspectable)
+ Q_ENUMS(LoadStatus);
+ Q_ENUMS(ErrorDomain);
public:
QQuickWebEngineView(QQuickItem *parent = 0);
@@ -75,6 +78,23 @@ public:
bool inspectable() const;
void setInspectable(bool);
+ enum LoadStatus {
+ LoadStartedStatus,
+ LoadStoppedStatus,
+ LoadSucceededStatus,
+ LoadFailedStatus
+ };
+
+ enum ErrorDomain {
+ NoErrorDomain,
+ InternalErrorDomain,
+ ConnectionErrorDomain,
+ CertificateErrorDomain,
+ HttpErrorDomain,
+ FtpErrorDomain,
+ DnsErrorDomain
+ };
+
public Q_SLOTS:
void goBack();
void goForward();
@@ -85,7 +105,7 @@ Q_SIGNALS:
void titleChanged();
void urlChanged();
void iconChanged();
- void loadingStateChanged();
+ void loadingStateChanged(QQuickWebEngineLoadRequest *loadRequest);
void loadProgressChanged();
protected: