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
qabstractprotocolhandler.cpp
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#include <private/qabstractprotocolhandler_p.h>
6#include <private/qhttpnetworkconnectionchannel_p.h>
7
8QT_BEGIN_NAMESPACE
9
10QAbstractProtocolHandler::QAbstractProtocolHandler(QHttpNetworkConnectionChannel *channel)
11 : m_channel(channel), m_reply(nullptr), m_socket(m_channel->socket), m_connection(m_channel->connection)
12{
13 Q_ASSERT(m_channel);
14 Q_ASSERT(m_socket);
15 Q_ASSERT(m_connection);
16}
17
18QAbstractProtocolHandler::~QAbstractProtocolHandler()
19{
20}
21
22void QAbstractProtocolHandler::setReply(QHttpNetworkReply *reply)
23{
24 m_reply = reply;
25}
26
27QT_END_NAMESPACE