1// Copyright (C) 2019 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 QCOMPRESSEDHELPINFO_H
5#define QCOMPRESSEDHELPINFO_H
6
7#include <QtHelp/qhelp_global.h>
8
9#include <QtCore/QSharedDataPointer>
10
11QT_BEGIN_NAMESPACE
12
13class QVersionNumber;
14class QCompressedHelpInfoPrivate;
15
16class QHELP_EXPORT QCompressedHelpInfo final
17{
18public:
19 QCompressedHelpInfo();
20 QCompressedHelpInfo(const QCompressedHelpInfo &other);
21 QCompressedHelpInfo(QCompressedHelpInfo &&other);
22 ~QCompressedHelpInfo();
23
24 QCompressedHelpInfo &operator=(const QCompressedHelpInfo &other);
25 QCompressedHelpInfo &operator=(QCompressedHelpInfo &&other);
26
27 void swap(QCompressedHelpInfo &other) Q_DECL_NOTHROW
28 { d.swap(other&: other.d); }
29
30 QString namespaceName() const;
31 QString component() const;
32 QVersionNumber version() const;
33 bool isNull() const;
34
35 static QCompressedHelpInfo fromCompressedHelpFile(const QString &documentationFileName);
36
37private:
38 QSharedDataPointer<QCompressedHelpInfoPrivate> d;
39};
40
41QT_END_NAMESPACE
42
43#endif // QHELPCOLLECTIONDETAILS_H
44

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