blob: a9eff6d12558d64f29c5744ca1e2e72fb4599042 (
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
|
// Copyright (C) 2023 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 QWEBENGINEGLOBALSETTINGS_H
#define QWEBENGINEGLOBALSETTINGS_H
#if 0
#pragma qt_class(QWebEngineGlobalSettings)
#endif
#include <QtWebEngineCore/qtwebenginecoreglobal.h>
#include <QtCore/QObject>
#include <QtCore/QScopedPointer>
QT_BEGIN_NAMESPACE
namespace QWebEngineGlobalSettings {
// Mapping net::SecureDnsMode
enum class SecureDnsMode : quint8 { SystemOnly = 0, SecureWithFallback = 1, SecureOnly = 2 };
struct DnsMode
{
SecureDnsMode secureMode = SecureDnsMode::SystemOnly;
QStringList serverTemplates;
};
Q_WEBENGINECORE_EXPORT bool setDnsMode(DnsMode dnsMode);
}
QT_END_NAMESPACE
#endif // QWEBENGINEGLOBALSETTINGS_H
|