KD SOAP API Documentation  2.1
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-2022 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 
16 #include "KDSoapSslHandler.h"
17 
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(QNetworkReply *reply, KDSoapSslHandler *handler)
A class for handling SSL errors during SOAP calls.

© 2010-2022 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 on Tue Jun 13 2023 12:18:34 for KD SOAP API Documentation by doxygen 1.9.1