1 | // Copyright (C) 2018 The Qt Company Ltd. |
---|---|
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 QHELPFILTERDATA_H |
5 | #define QHELPFILTERDATA_H |
6 | |
7 | #include <QtHelp/qhelp_global.h> |
8 | |
9 | #include <QtCore/QSharedDataPointer> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QVersionNumber; |
14 | class QHelpFilterDataPrivate; |
15 | |
16 | class QHELP_EXPORT QHelpFilterData final |
17 | { |
18 | public: |
19 | QHelpFilterData(); |
20 | QHelpFilterData(const QHelpFilterData &other); |
21 | QHelpFilterData(QHelpFilterData &&other); |
22 | ~QHelpFilterData(); |
23 | |
24 | QHelpFilterData &operator=(const QHelpFilterData &other); |
25 | QHelpFilterData &operator=(QHelpFilterData &&other); |
26 | bool operator==(const QHelpFilterData &other) const; |
27 | |
28 | void swap(QHelpFilterData &other) Q_DECL_NOTHROW |
29 | { d.swap(other&: other.d); } |
30 | |
31 | void setComponents(const QStringList &components); |
32 | void setVersions(const QList<QVersionNumber> &versions); |
33 | |
34 | QStringList components() const; |
35 | QList<QVersionNumber> versions() const; |
36 | private: |
37 | QSharedDataPointer<QHelpFilterDataPrivate> d; |
38 | }; |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | #endif // QHELPFILTERDATA_H |
43 |