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 #include <memory>
15 
16 template<typename T>
17 class QList;
18 class KTcpSocket;
19 class QNetworkReply;
20 class QSslError;
21 class QSslSocket;
22 
23 /**
24  * This class can hold all the necessary data from a KTcpSocket to ask the user
25  * to continue connecting in the face of SSL errors.
26  * It can be used to carry the data for the UI over time or over thread boundaries.
27  *
28  * @see: KSslCertificateManager::askIgnoreSslErrors()
29  */
30 class KIOCORE_EXPORT KSslErrorUiData
31 {
32 public:
33  /**
34  * Default construct an instance with no useful data.
35  */
37 #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 65)
38  /**
39  * Create an instance and initialize it with SSL error data from @p socket.
40  * @deprecated since 5.65, use QSslSocket variant
41  */
42  KIOCORE_DEPRECATED_VERSION(5, 65, "Use QSslSocket variant")
43  KSslErrorUiData(const KTcpSocket *socket);
44 #endif
45  /**
46  * Create an instance and initialize it with SSL error data from @p socket.
47  */
48  KSslErrorUiData(const QSslSocket *socket);
49  /**
50  * Create an instance and initialize it with SSL error data from @p reply.
51  * @since 5.62
52  */
53  KSslErrorUiData(const QNetworkReply *reply, const QList<QSslError> &sslErrors);
54 
55  KSslErrorUiData(const KSslErrorUiData &other);
56  KSslErrorUiData &operator=(const KSslErrorUiData &);
57  /**
58  * Destructor
59  * @since 4.7
60  */
61  ~KSslErrorUiData();
62 
63  class Private;
64 
65 private:
66  friend class Private;
67  std::unique_ptr<Private> const d;
68 };
69 
70 #endif // KSSLERRORUIDATA_H
TCP socket.
Definition: ktcpsocket.h:161
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-2022 The KDE developers.
Generated on Mon Jan 24 2022 22:53:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.