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
qhttp2configuration.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QHTTP2CONFIGURATION_H
5#define QHTTP2CONFIGURATION_H
6
7#include <QtNetwork/qtnetworkglobal.h>
8
9#include <QtCore/qshareddata.h>
10
12
14
16class Q_NETWORK_EXPORT QHttp2Configuration
17{
18public:
24
26
27 void setServerPushEnabled(bool enable);
28 bool serverPushEnabled() const;
29
30 void setHuffmanCompressionEnabled(bool enable);
31 bool huffmanCompressionEnabled() const;
32
33 bool setSessionReceiveWindowSize(unsigned size);
34 unsigned sessionReceiveWindowSize() const;
35
36 bool setStreamReceiveWindowSize(unsigned size);
37 unsigned streamReceiveWindowSize() const;
38
39 bool setMaxFrameSize(unsigned size);
40 unsigned maxFrameSize() const;
41
42 void swap(QHttp2Configuration &other) noexcept;
43
44private:
45 QSharedDataPointer<QHttp2ConfigurationPrivate> d;
46
47 bool isEqual(const QHttp2Configuration &other) const noexcept;
48
49 friend bool operator==(const QHttp2Configuration &lhs, const QHttp2Configuration &rhs) noexcept
50 { return lhs.isEqual(rhs); }
51 friend bool operator!=(const QHttp2Configuration &lhs, const QHttp2Configuration &rhs) noexcept
52 { return !lhs.isEqual(rhs); }
53
54};
55
56Q_DECLARE_SHARED(QHttp2Configuration)
57
59
60#endif // QHTTP2CONFIGURATION_H
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
The QHttp2Configuration class controls HTTP/2 parameters and settings.
friend bool operator!=(const QHttp2Configuration &lhs, const QHttp2Configuration &rhs) noexcept
Returns true if lhs and rhs do not have the same set of HTTP/2 parameters.
QHttp2Configuration(const QHttp2Configuration &other)
Copy-constructs this QHttp2Configuration.
friend bool operator==(const QHttp2Configuration &lhs, const QHttp2Configuration &rhs) noexcept
Returns true if lhs and rhs have the same set of HTTP/2 parameters.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLboolean enable
#define QT_REQUIRE_CONFIG(feature)
QSharedPointer< T > other(t)
[5]
this swap(other)