1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKWEBVIEWREQUEST_H
5#define QQUICKWEBVIEWREQUEST_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWebViewQuick/private/qtwebviewquickglobal_p.h>
19#include <QtWebViewQuick/private/qquickwebview_p.h>
20#include <QtQml/qqmlregistration.h>
21
22QT_BEGIN_NAMESPACE
23
24class QWebViewLoadRequestPrivate;
25
26class Q_WEBVIEWQUICK_EXPORT QQuickWebViewLoadRequest : public QObject
27{
28 Q_OBJECT
29 Q_PROPERTY(QUrl url READ url)
30 Q_PROPERTY(QQuickWebView::LoadStatus status READ status)
31 Q_PROPERTY(QString errorString READ errorString)
32 QML_NAMED_ELEMENT(WebViewLoadRequest)
33 QML_ADDED_IN_VERSION(1, 1)
34 QML_EXTRA_VERSION(2, 0)
35 QML_UNCREATABLE("")
36
37public:
38 ~QQuickWebViewLoadRequest();
39
40 QUrl url() const;
41 QQuickWebView::LoadStatus status() const;
42 QString errorString() const;
43
44private:
45 friend class QQuickWebView;
46 explicit QQuickWebViewLoadRequest(const QWebViewLoadRequestPrivate &d);
47 Q_DECLARE_PRIVATE(QWebViewLoadRequest)
48 QScopedPointer<QWebViewLoadRequestPrivate> d_ptr;
49};
50
51QT_END_NAMESPACE
52
53#endif // QQUICKWEBVIEWREQUEST_H
54

source code of qtwebview/src/quick/qquickwebviewloadrequest_p.h