1// Copyright (C) 2014 BlackBerry Limited. All rights reserved.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <private/qabstractprotocolhandler_p.h>
5#include <private/qhttpnetworkconnectionchannel_p.h>
6
7QT_BEGIN_NAMESPACE
8
9QAbstractProtocolHandler::QAbstractProtocolHandler(QHttpNetworkConnectionChannel *channel)
10 : m_channel(channel), m_reply(nullptr), m_socket(m_channel->socket), m_connection(m_channel->connection)
11{
12 Q_ASSERT(m_channel);
13 Q_ASSERT(m_socket);
14 Q_ASSERT(m_connection);
15}
16
17QAbstractProtocolHandler::~QAbstractProtocolHandler()
18{
19}
20
21void QAbstractProtocolHandler::setReply(QHttpNetworkReply *reply)
22{
23 m_reply = reply;
24}
25
26QT_END_NAMESPACE
27

source code of qtbase/src/network/access/qabstractprotocolhandler.cpp