1// Copyright (c) 2023 LLC «V Kontakte»
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#define QT_NETWORK_BUILD_REMOVED_API
5
6#include "qtnetworkglobal.h"
7
8QT_USE_NAMESPACE
9
10#if QT_NETWORK_REMOVED_SINCE(6, 7)
11
12#include "qhostinfo.h"
13
14// static
15int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member)
16{
17 const auto *r = receiver;
18 return lookupHost(name, receiver: r, member);
19}
20
21
22#include "qnetworkreply.h"
23
24QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const
25{
26 return rawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName));
27}
28
29bool QNetworkReply::hasRawHeader(const QByteArray &headerName) const
30{
31 return hasRawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName));
32}
33
34#include "qnetworkrequest.h"
35
36QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName) const
37{
38 return rawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName));
39}
40
41bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const
42{
43 return hasRawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName));
44}
45
46#include "qnetworkcookie.h"
47
48QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
49{
50 return parseCookies(cookieString: qToByteArrayViewIgnoringNull(b: cookieString));
51}
52
53// #include "qotherheader.h"
54// // implement removed functions from qotherheader.h
55// order sections alphabetically
56
57#endif // QT_NETWORK_REMOVED_SINCE(6, 7)
58
59#if QT_NETWORK_REMOVED_SINCE(6, 8)
60
61#if QT_CONFIG(dnslookup)
62# include "qdnslookup.h" // inlined API
63#endif
64#include "qnetworkrequest.h" // inlined API
65
66#include "qsslerror.h"
67
68#ifndef QT_NO_DEBUG_STREAM
69#if QT_CONFIG(ssl)
70QDebug operator<<(QDebug debug, const QSslError::SslError &error)
71{
72 return print(debug: std::move(debug), error);
73}
74#endif
75#endif
76
77// #include "qotherheader.h"
78// // implement removed functions from qotherheader.h
79// order sections alphabetically
80
81#endif // QT_NETWORK_REMOVED_SINCE(6, 8)
82

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtbase/src/network/compat/removed_api.cpp