KD SOAP API Documentation: KDSoapSslHandler.cpp Source File

| 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
26 void KDSoapSslHandler::ignoreSslErrors()
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
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
KDSoapSslHandler.h
KDSoapSslHandler::sslErrors
void sslErrors(KDSoapSslHandler *handler, const QList< QSslError > &errors)
Notification of SSL errors.
KDSoapSslHandler::ignoreSslErrors
void ignoreSslErrors()
ignoreSslErrors
Definition KDSoapSslHandler.cpp:26
QList
QNetworkReply
QNetworkReply::ignoreSslErrors
void ignoreSslErrors(const QList< QSslError > &errors)
QObject
QObject::Q_EMIT
Q_EMITQ_EMIT
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