summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebengineglobalsettings.h
blob: f13849a34aa31b216c1f744ba7d57b4a851fe08d (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
// 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
// Qt-Security score:critical reason:network-protocol

#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