KD SOAP API Documentation
2.2
Loading...
Searching...
No Matches
source
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
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)
© 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 Sat Apr 20 2024 00:04:25 for KD SOAP API Documentation by doxygen 1.9.8