blob: 835a1e9c9b9996059eb94ef4561425e4c9a02b84 (
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
51
52
53
54
55
56
57
58
59
60
61
|
// 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
#ifndef QWEBVIEWINTERFACE_H
#define QWEBVIEWINTERFACE_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtWebView/qwebview_global.h>
#include <QtCore/qobject.h>
#include <QtCore/qurl.h>
#include <QtGui/qimage.h>
#include <QtCore/private/qglobal_p.h>
QT_BEGIN_NAMESPACE
class QJSValue;
class QWebViewInterface
{
public:
virtual ~QWebViewInterface() {}
virtual QString httpUserAgent() const = 0;
virtual void setHttpUserAgent(const QString &httpUserAgent) = 0;
virtual void setUrl(const QUrl &url) = 0;
virtual bool canGoBack() const = 0;
virtual bool canGoForward() const = 0;
virtual QString title() const = 0;
virtual int loadProgress() const = 0;
virtual bool isLoading() const = 0;
// Q_SLOTS
virtual void goBack() = 0;
virtual void goForward() = 0;
virtual void stop() = 0;
virtual void reload() = 0;
virtual void loadHtml(const QString &html, const QUrl &baseUrl = QUrl()) = 0;
virtual void runJavaScriptPrivate(const QString &script,
int callbackId) = 0;
virtual void setCookie(const QString &domain, const QString &name, const QString &value) = 0;
virtual void deleteCookie(const QString &domain, const QString &name) = 0;
virtual void deleteAllCookies() = 0;
virtual QWindow *nativeWindow() const = 0;
};
QT_END_NAMESPACE
#endif // QWEBVIEWINTERFACE_H
|