diff options
Diffstat (limited to 'src/network/compat/removed_api.cpp')
| -rw-r--r-- | src/network/compat/removed_api.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/network/compat/removed_api.cpp b/src/network/compat/removed_api.cpp new file mode 100644 index 00000000000..f445556c19a --- /dev/null +++ b/src/network/compat/removed_api.cpp @@ -0,0 +1,40 @@ +// Copyright (c) 2023 LLC «V Kontakte» +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#define QT_NETWORK_BUILD_REMOVED_API + +#include "qtnetworkglobal.h" + +QT_USE_NAMESPACE + +#if QT_NETWORK_REMOVED_SINCE(6, 7) + +#include "qnetworkreply.h" + +QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const +{ + return rawHeader(qToByteArrayViewIgnoringNull(headerName)); +} + +bool QNetworkReply::hasRawHeader(const QByteArray &headerName) const +{ + return hasRawHeader(qToByteArrayViewIgnoringNull(headerName)); +} + +#include "qnetworkrequest.h" + +QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName) const +{ + return rawHeader(qToByteArrayViewIgnoringNull(headerName)); +} + +bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const +{ + return hasRawHeader(qToByteArrayViewIgnoringNull(headerName)); +} + +// #include "qotherheader.h" +// // implement removed functions from qotherheader.h +// order sections alphabetically + +#endif // QT_NETWORK_REMOVED_SINCE(6, 7) |
