KD SOAP  1.10.0
KDSoapSslHandler.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2010-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDSoap OR LicenseRef-KDAB-KDSoap-US
8 **
9 ** Licensees holding valid commercial KD Soap licenses may use this file in
10 ** accordance with the KD Soap Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDSOAPSSLHANDLER_H
18 #define KDSOAPSSLHANDLER_H
19 
20 #include <QObject>
21 #include <QSslError>
22 #include "KDSoapGlobal.h"
23 
24 QT_BEGIN_NAMESPACE
25 class QNetworkReply;
26 QT_END_NAMESPACE
27 
28 #ifndef QT_NO_SSL
29 
30 class KDSoapReplySslHandler;
36 class KDSOAP_EXPORT KDSoapSslHandler : public QObject
37 {
38  Q_OBJECT
39 public:
40 
41 Q_SIGNALS:
55  void sslErrors(KDSoapSslHandler *handler, const QList<QSslError> &errors);
56 
57 public Q_SLOTS:
70  void ignoreSslErrors();
71 
83  void ignoreSslErrors(const QList<QSslError> &errors);
84 
85 private:
86  friend class KDSoapReplySslHandler;
87  void handleSslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
88 
89 private:
90  friend class KDSoapClientInterface;
91  friend class KDSoapClientInterfacePrivate;
96  explicit KDSoapSslHandler(QObject *parent = nullptr);
97  virtual ~KDSoapSslHandler();
98 
99  QNetworkReply *m_reply;
100 };
101 
102 #if QT_VERSION < 0x050000
103 Q_DECLARE_METATYPE(KDSoapSslHandler *)
104 #endif
105 
106 #endif // QT_NO_SSL
107 
108 #endif // KDSOAPSSLHANDLER_H
A class for handling SSL errors during SOAP calls.
Definition: KDSoapSslHandler.h:36
Definition: KDSoapClientInterface.h:56

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/