KD SOAP
 All Classes Functions Enumerations Enumerator Pages
KDSoapSslHandler.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2013 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Soap library.
5 **
6 ** Licensees holding valid commercial KD Soap licenses may use this file in
7 ** accordance with the KD Soap Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU Lesser General Public License version 2 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef KDSOAPSSLHANDLER_H
24 #define KDSOAPSSLHANDLER_H
25 
26 #include <QObject>
27 #include <QSslError>
28 #include "KDSoapGlobal.h"
29 
30 QT_BEGIN_NAMESPACE
31 class QNetworkReply;
32 QT_END_NAMESPACE
33 
34 #ifndef QT_NO_OPENSSL
35 
40 class KDSOAP_EXPORT KDSoapSslHandler : public QObject
41 {
42  Q_OBJECT
43 public:
44 
45 Q_SIGNALS:
58  void sslErrors(KDSoapSslHandler *handler, const QList<QSslError> &errors);
59 
60 public Q_SLOTS:
73  void ignoreSslErrors();
74 
75 private Q_SLOTS:
76  void slotSslErrors(const QList<QSslError> &errors);
77 
78 private:
79  friend class KDSoapClientInterface;
80  friend class KDSoapClientInterfacePrivate;
85  explicit KDSoapSslHandler(QObject *parent = 0);
86  virtual ~KDSoapSslHandler();
87 
88  QNetworkReply* m_reply; // could be replaced with a d pointer if needed
89 };
90 
91 #if QT_VERSION < 0x050000
92 Q_DECLARE_METATYPE(KDSoapSslHandler *)
93 #endif
94 
95 #endif // QT_NO_OPENSSL
96 
97 #endif // KDSOAPSSLHANDLER_H

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/