KD SOAP API Documentation 2.2
Loading...
Searching...
No Matches
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
16KDSoapSslHandler::KDSoapSslHandler(QObject *parent)
17 : QObject(parent)
18 , m_reply(nullptr)
19{
20}
21
22KDSoapSslHandler::~KDSoapSslHandler()
23{
24}
25
27{
28 Q_ASSERT(m_reply);
29 m_reply->ignoreSslErrors();
30}
31
33{
34 Q_ASSERT(m_reply);
35 m_reply->ignoreSslErrors(errors);
36}
37
38void 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
void ignoreSslErrors(const QList< QSslError > &errors)
Q_EMITQ_EMIT
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