blob: aee95117bed71a6c6add626f7d611a245d66e1ea (
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
|
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default
#ifndef QWEBVIEWLOADREQUEST_H
#define QWEBVIEWLOADREQUEST_H
#include <QtWebView/qwebview.h>
#include <QtCore/qstring.h>
#include <QtCore/qurl.h>
QT_BEGIN_NAMESPACE
class Q_WEBVIEW_EXPORT QWebViewLoadRequest
{
Q_GADGET
Q_PROPERTY(QUrl url READ url CONSTANT)
Q_PROPERTY(LoadStatus status READ status CONSTANT)
Q_PROPERTY(QString errorString READ errorString CONSTANT)
Q_CLASSINFO("RegisterEnumClassesUnscoped", "false")
public:
enum class LoadStatus {
LoadStartedStatus,
LoadStoppedStatus,
LoadSucceededStatus,
LoadFailedStatus
};
Q_ENUM(LoadStatus)
QWebViewLoadRequest();
QWebViewLoadRequest(const QUrl &url, LoadStatus status, const QString &errorString);
~QWebViewLoadRequest();
QUrl url() const;
LoadStatus status() const;
QString errorString() const;
private:
QUrl m_url;
LoadStatus m_status;
QString m_errorString;
};
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QWebViewLoadRequest)
#endif // QWEBVIEWLOADREQUEST_H
|