Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
removed_api.cpp
Go to the documentation of this file.
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
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, r, member);
19}
20
21
22#include "qnetworkreply.h"
23
24QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const
25{
26 return rawHeader(qToByteArrayViewIgnoringNull(headerName));
27}
28
29bool QNetworkReply::hasRawHeader(const QByteArray &headerName) const
30{
31 return hasRawHeader(qToByteArrayViewIgnoringNull(headerName));
32}
33
34#include "qnetworkrequest.h"
35
36QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName) const
37{
38 return rawHeader(qToByteArrayViewIgnoringNull(headerName));
39}
40
41bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const
42{
43 return hasRawHeader(qToByteArrayViewIgnoringNull(headerName));
44}
45
46#include "qnetworkcookie.h"
47
48QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
49{
50 return parseCookies(qToByteArrayViewIgnoringNull(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)
70
71#include "qdebug.h"
72
73QDebug operator<<(QDebug debug, const QSslError::SslError &error)
74{
75 return print(std::move(debug), error);
76}
77#endif
78#endif
79
80// #include "qotherheader.h"
81// // implement removed functions from qotherheader.h
82// order sections alphabetically
83
84#endif // QT_NETWORK_REMOVED_SINCE(6, 8)
85
86#if QT_NETWORK_REMOVED_SINCE(6, 12)
87
88#ifndef QT_NO_DEBUG_STREAM
89#include "qdebug.h"
90
91#include "qabstractsocket.h"
92
93QDebug operator<<(QDebug debug, QAbstractSocket::SocketError error)
94{
95 return operator<< <QAbstractSocket::SocketError>(std::move(debug), error);
96}
97
98QDebug operator<<(QDebug debug, QAbstractSocket::SocketState state)
99{
100 return operator<< <QAbstractSocket::SocketState>(std::move(debug), state);
101}
102#endif // !QT_NO_DEBUG_STREAM
103
104#if QT_CONFIG(localserver)
105#include "qlocalsocket.h"
106
107#ifndef QT_NO_DEBUG_STREAM
108#include "qdebug.h"
109
110QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketError error)
111{
112 return operator<< <QLocalSocket::LocalSocketError>(std::move(debug), error);
113}
114
115QDebug operator<<(QDebug debug, QLocalSocket::LocalSocketState state)
116{
117 return operator<< <QLocalSocket::LocalSocketState>(std::move(debug), state);
118}
119#endif // !QT_NO_DEBUG_STREAM
120#endif // QT_CONFIG(localserver)
121
122
123// #include "qotherheader.h"
124// // implement removed functions from qotherheader.h
125// order sections alphabetically
126
127#endif // QT_NETWORK_REMOVED_SINCE(6, 12)