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
11QT_BEGIN_NAMESPACE
12
13class QVersionNumber;
14class QHelpFilterDataPrivate;
15
16class QHELP_EXPORT QHelpFilterData final
17{
18public:
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;
36private:
37 QSharedDataPointer<QHelpFilterDataPrivate> d;
38};
39
40QT_END_NAMESPACE
41
42#endif // QHELPFILTERDATA_H
43

source code of qttools/src/assistant/help/qhelpfilterdata.h