KD SOAP API Documentation  2.2
KDSoapSslHandler.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> //may define QT_NO_SSL. krazy:exclude=includes
12 
13 #ifndef QT_NO_SSL
14 #include "KDSoapSslHandler.h"
15 
16 KDSoapSslHandler::KDSoapSslHandler(QObject *parent)
17  : QObject(parent)
18  , m_reply(nullptr)
19 {
20 }
21 
22 KDSoapSslHandler::~KDSoapSslHandler()
23 {
24 }
25 
27 {
28  Q_ASSERT(m_reply);
29  m_reply->ignoreSslErrors();
30 }
31 
32 void KDSoapSslHandler::ignoreSslErrors(const QList<QSslError> &errors)
33 {
34  Q_ASSERT(m_reply);
35  m_reply->ignoreSslErrors(errors);
36 }
37 
38 void KDSoapSslHandler::handleSslErrors(QNetworkReply *reply, const QList<QSslError> &errors)
39 {
40  m_reply = reply;
41  Q_ASSERT(m_reply);
42  Q_EMIT sslErrors(this, errors);
43 }
44 #endif
void sslErrors(KDSoapSslHandler *handler, const QList< QSslError > &errors)
Notification of SSL errors.
void ignoreSslErrors()
ignoreSslErrors

© 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