| 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 | |
| 8 | QT_USE_NAMESPACE |
| 9 | |
| 10 | #if QT_NETWORK_REMOVED_SINCE(6, 7) |
| 11 | |
| 12 | #include "qhostinfo.h" |
| 13 | |
| 14 | // static |
| 15 | int 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 | |
| 24 | QByteArray QNetworkReply::(const QByteArray &) const |
| 25 | { |
| 26 | return rawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName)); |
| 27 | } |
| 28 | |
| 29 | bool QNetworkReply::(const QByteArray &) const |
| 30 | { |
| 31 | return hasRawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName)); |
| 32 | } |
| 33 | |
| 34 | #include "qnetworkrequest.h" |
| 35 | |
| 36 | QByteArray QNetworkRequest::(const QByteArray &) const |
| 37 | { |
| 38 | return rawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName)); |
| 39 | } |
| 40 | |
| 41 | bool QNetworkRequest::(const QByteArray &) const |
| 42 | { |
| 43 | return hasRawHeader(headerName: qToByteArrayViewIgnoringNull(b: headerName)); |
| 44 | } |
| 45 | |
| 46 | #include "qnetworkcookie.h" |
| 47 | |
| 48 | QList<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) |
| 70 | |
| 71 | #include "qdebug.h" |
| 72 | |
| 73 | QDebug operator<<(QDebug debug, const QSslError::SslError &error) |
| 74 | { |
| 75 | return print(debug: 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 | |