KD SOAP API Documentation
2.2
src
KDSoapClient
KDSoapReplySslHandler.cpp
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Soap project.
4
**
5
** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#include <QNetworkReply>
//krazy:exclude=includes must come first to define QT_NO_SSL
12
13
#ifndef QT_NO_SSL
14
15
#include "
KDSoapReplySslHandler_p.h
"
16
#include "
KDSoapSslHandler.h
"
17
18
KDSoapReplySslHandler::KDSoapReplySslHandler
(QNetworkReply *reply,
KDSoapSslHandler
*handler)
19
: QObject(reply)
20
, m_handler(handler)
21
{
22
Q_ASSERT(reply);
23
Q_ASSERT(handler);
24
QObject::connect(reply, &QNetworkReply::sslErrors,
this
, &KDSoapReplySslHandler::slotReplySslErrors);
25
}
26
27
void
KDSoapReplySslHandler::slotReplySslErrors(
const
QList<QSslError> &errors)
28
{
29
QNetworkReply *reply = qobject_cast<QNetworkReply *>(parent());
30
Q_ASSERT(reply);
31
m_handler->handleSslErrors(reply, errors);
32
}
33
34
#endif
KDSoapReplySslHandler_p.h
KDSoapSslHandler.h
KDSoapReplySslHandler::KDSoapReplySslHandler
KDSoapReplySslHandler(QNetworkReply *reply, KDSoapSslHandler *handler)
Definition:
KDSoapReplySslHandler.cpp:18
KDSoapSslHandler
A class for handling SSL errors during SOAP calls.
Definition:
KDSoapSslHandler.h:31
© 2010-2024 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated by doxygen 1.9.1