Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qhstsstore_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QHSTSSTORE_P_H
5#define QHSTSSTORE_P_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 for the convenience
12// of the Network Access API. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19
21
22#include <QtCore/qlist.h>
23#include <QtCore/qsettings.h>
24
26
27class QHstsPolicy;
28class QByteArray;
29class QString;
30
32{
33public:
34 explicit QHstsStore(const QString &dirName);
36
37 QList<QHstsPolicy> readPolicies();
38 void addToObserved(const QHstsPolicy &policy);
39 void synchronize();
40
41 bool isWritable() const;
42
43 static QString absoluteFilePath(const QString &dirName);
44private:
45 void beginHstsGroups();
46 bool serializePolicy(const QString &key, const QHstsPolicy &policy);
47 bool deserializePolicy(const QString &key, QHstsPolicy &policy);
48 void evictPolicy(const QString &key);
49 void endHstsGroups();
50
51 QList<QHstsPolicy> observedPolicies;
52 QSettings store;
53
54 Q_DISABLE_COPY_MOVE(QHstsStore)
55};
56
58
59#endif // QHSTSSTORE_P_H
\inmodule QtCore
Definition qbytearray.h:57
The QHstsPolicy class specifies that a host supports HTTP Strict Transport Security policy (HSTS).
Definition qhstspolicy.h:19
\inmodule QtCore
Definition qsettings.h:30
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint64 key
static QString absoluteFilePath(const Options *options, const QString &relativeFileName)
Definition main.cpp:1902
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
QSettings settings("MySoft", "Star Runner")
[0]
QSizePolicy policy