summaryrefslogtreecommitdiffstats
path: root/src/network/compat/removed_api.cpp
blob: 86951d9222676bfb0237e1a6c9e2382cb78d8c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// 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 "qhostinfo.h"

// static
int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member)
{
    const auto *r = receiver;
    return lookupHost(name, r, member);
}


#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 "qnetworkcookie.h"

QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
{
    return parseCookies(qToByteArrayViewIgnoringNull(cookieString));
}

// #include "qotherheader.h"
// // implement removed functions from qotherheader.h
// order sections alphabetically

#endif // QT_NETWORK_REMOVED_SINCE(6, 7)

#if QT_NETWORK_REMOVED_SINCE(6, 8)

#include "qnetworkrequest.h" // inlined API

// #include "qotherheader.h"
// // implement removed functions from qotherheader.h
// order sections alphabetically

#endif // QT_NETWORK_REMOVED_SINCE(6, 8)