1 | // Copyright (C) 2011 Richard J. Moore <rich@kde.org> |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QSSLCERTIFICATEEXTENSION_H |
5 | #define QSSLCERTIFICATEEXTENSION_H |
6 | |
7 | #include <QtNetwork/qtnetworkglobal.h> |
8 | #include <QtCore/qnamespace.h> |
9 | #include <QtCore/qshareddata.h> |
10 | #include <QtCore/qstring.h> |
11 | #include <QtCore/qvariant.h> |
12 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | class QSslCertificateExtensionPrivate; |
16 | |
17 | class Q_NETWORK_EXPORT QSslCertificateExtension |
18 | { |
19 | public: |
20 | QSslCertificateExtension(); |
21 | QSslCertificateExtension(const QSslCertificateExtension &other); |
22 | QSslCertificateExtension &operator=(QSslCertificateExtension &&other) noexcept { swap(other); return *this; } |
23 | QSslCertificateExtension &operator=(const QSslCertificateExtension &other); |
24 | ~QSslCertificateExtension(); |
25 | |
26 | void swap(QSslCertificateExtension &other) noexcept { d.swap(other&: other.d); } |
27 | |
28 | QString oid() const; |
29 | QString name() const; |
30 | QVariant value() const; |
31 | bool isCritical() const; |
32 | |
33 | bool isSupported() const; |
34 | |
35 | private: |
36 | friend class QSslCertificatePrivate; |
37 | QSharedDataPointer<QSslCertificateExtensionPrivate> d; |
38 | }; |
39 | |
40 | Q_DECLARE_SHARED(QSslCertificateExtension) |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | |
45 | #endif // QSSLCERTIFICATEEXTENSION_H |
46 | |
47 | |
48 |