KIO

ksslerroruidata.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2007 Thiago Macieira <[email protected]>
4  SPDX-FileCopyrightText: 2007 Andreas Hartmetz <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KSSLERRORUIDATA_H
10 #define KSSLERRORUIDATA_H
11 
12 #include <kiocore_export.h>
13 
14 template<typename T>
15 class QList;
16 class KTcpSocket;
17 class QNetworkReply;
18 class QSslError;
19 class QSslSocket;
20 
21 /**
22  * This class can hold all the necessary data from a KTcpSocket to ask the user
23  * to continue connecting in the face of SSL errors.
24  * It can be used to carry the data for the UI over time or over thread boundaries.
25  *
26  * @see: KSslCertificateManager::askIgnoreSslErrors()
27  */
28 class KIOCORE_EXPORT KSslErrorUiData
29 {
30 public:
31  /**
32  * Default construct an instance with no useful data.
33  */
35 #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 65)
36  /**
37  * Create an instance and initialize it with SSL error data from @p socket.
38  * @deprecated since 5.65, use QSslSocket variant
39  */
40  KIOCORE_DEPRECATED_VERSION(5, 65, "Use QSslSocket variant")
41  KSslErrorUiData(const KTcpSocket *socket);
42 #endif
43  /**
44  * Create an instance and initialize it with SSL error data from @p socket.
45  */
46  KSslErrorUiData(const QSslSocket *socket);
47  /**
48  * Create an instance and initialize it with SSL error data from @p reply.
49  * @since 5.62
50  */
51  KSslErrorUiData(const QNetworkReply *reply, const QList<QSslError> &sslErrors);
52 
53  KSslErrorUiData(const KSslErrorUiData &other);
54  KSslErrorUiData &operator=(const KSslErrorUiData &);
55  /**
56  * Destructor
57  * @since 4.7
58  */
59  ~KSslErrorUiData();
60 
61  class Private;
62 
63 private:
64  friend class Private;
65  Private *const d;
66 };
67 
68 #endif // KSSLERRORUIDATA_H
TCP socket.
Definition: ktcpsocket.h:159
This class can hold all the necessary data from a KTcpSocket to ask the user to continue connecting i...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 23:00:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.