KD SOAP API Documentation: KDSoapReplySslHandler.cpp Source File

| KD SOAP API Documentation 2.2

Loading...
Searching...
No Matches
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
18KDSoapReplySslHandler::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
27void 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
QList
QNetworkReply
QNetworkReply::sslErrors
void sslErrors(const QList< QSslError > &errors)
QObject
QObject::connect
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject::parent
QObject * parent() const const
QObject::qobject_cast
T qobject_cast(QObject *object)

© 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 on Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8