KD SOAP  1.9.1
KDSoapSslHandler.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2020 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com.
3 ** All rights reserved.
4 **
5 ** This file is part of the KD Soap library.
6 **
7 ** Licensees holding valid commercial KD Soap licenses may use this file in
8 ** accordance with the KD Soap Commercial License Agreement provided with
9 ** the Software.
10 **
11 **
12 ** This file may be distributed and/or modified under the terms of the
13 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
14 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
15 **
16 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 **
19 ** Contact info@kdab.com if any conditions of this licensing are not
20 ** clear to you.
21 **
22 **********************************************************************/
23 
24 #ifndef KDSOAPSSLHANDLER_H
25 #define KDSOAPSSLHANDLER_H
26 
27 #include <QObject>
28 #include <QSslError>
29 #include "KDSoapGlobal.h"
30 
31 QT_BEGIN_NAMESPACE
32 class QNetworkReply;
33 QT_END_NAMESPACE
34 
35 #ifndef QT_NO_OPENSSL
36 
37 class KDSoapReplySslHandler;
43 class KDSOAP_EXPORT KDSoapSslHandler : public QObject
44 {
45  Q_OBJECT
46 public:
47 
48 Q_SIGNALS:
62  void sslErrors(KDSoapSslHandler *handler, const QList<QSslError> &errors);
63 
64 public Q_SLOTS:
77  void ignoreSslErrors();
78 
90  void ignoreSslErrors(const QList<QSslError> &errors);
91 
92 private:
93  friend class KDSoapReplySslHandler;
94  void handleSslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
95 
96 private:
97  friend class KDSoapClientInterface;
98  friend class KDSoapClientInterfacePrivate;
103  explicit KDSoapSslHandler(QObject *parent = nullptr);
104  virtual ~KDSoapSslHandler();
105 
106  QNetworkReply *m_reply;
107 };
108 
109 #if QT_VERSION < 0x050000
110 Q_DECLARE_METATYPE(KDSoapSslHandler *)
111 #endif
112 
113 #endif // QT_NO_OPENSSL
114 
115 #endif // KDSOAPSSLHANDLER_H
A class for handling SSL errors during SOAP calls.
Definition: KDSoapSslHandler.h:43
Definition: KDSoapClientInterface.h:63

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/