Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhelpdatainterface_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:insignificant reason:build-tool
4
5#ifndef QHELPDATAINTERFACE_H
6#define QHELPDATAINTERFACE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the help generator tools. This header file may change from version
14// to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/QSharedData>
20#include <QtCore/QStringList>
21#include <QtCore/QVariant>
22
23QT_BEGIN_NAMESPACE
24
25class QHelpDataContentItem
26{
27public:
28 QHelpDataContentItem(QHelpDataContentItem *parent, const QString &title,
29 const QString &reference);
30 ~QHelpDataContentItem();
31
32 QString title() const;
33 QString reference() const;
34 QList<QHelpDataContentItem*> children() const;
35
36private:
37 QString m_title;
38 QString m_reference;
39 QList<QHelpDataContentItem*> m_children;
40};
41
44 QHelpDataIndexItem(const QString &n, const QString &id, const QString &r)
45 : name(n), identifier(id), reference(r) {}
46
50
51 bool operator==(const QHelpDataIndexItem & other) const;
52};
53
67
69{
70public:
72
73 void addFilterAttribute(const QString &filter);
75
76 void addIndex(const QHelpDataIndexItem &index);
77 void setIndices(const QList<QHelpDataIndexItem> &indices);
79
80 void addContent(QHelpDataContentItem *content);
81 void setContents(const QList<QHelpDataContentItem*> &contents);
83
84 void addFile(const QString &file);
85 void setFiles(const QStringList &files);
86 QStringList files() const;
87
88private:
89 QSharedDataPointer<QHelpDataFilterSectionData> d;
90};
91
96
97QT_END_NAMESPACE
98
99#endif // QHELPDATAINTERFACE_H
static void setFullTextSearchFallbackEnabled(QHelpEngineCore &helpEngine, bool on)
static void setAddressBarVisible(QHelpEngineCore &helpEngine, bool visible)
static void setDocumentationManagerEnabled(QHelpEngineCore &helpEngine, bool enabled)
static void setAddressBarEnabled(QHelpEngineCore &helpEngine, bool enabled)
static void updateLastRegisterTime(QHelpEngineCore &helpEngine)
static void setFilterToolbarVisible(QHelpEngineCore &helpEngine, bool visible)
static void setFilterFunctionalityEnabled(QHelpEngineCore &helpEngine, bool enabled)
QString error() const
bool checkLinks(const QHelpProjectData &helpData)
bool generate(QHelpProjectData *helpData, const QString &outputFileName)
Definition main.cpp:25
QList< QHelpDataContentItem * > contents
QList< QHelpDataIndexItem > indices
void addContent(QHelpDataContentItem *content)
Adds the top level content item content to the filter section.
void addFilterAttribute(const QString &filter)
Adds the filter attribute filter to the filter attributes of this section.
void setContents(const QList< QHelpDataContentItem * > &contents)
Sets the list of top level content items of the filter section to contents.
QStringList filterAttributes() const
Returns a list of all filter attributes defined for this section.
void setFiles(const QStringList &files)
Set the list of files to files.
QList< QHelpDataIndexItem > indices() const
Returns the list of indices.
void setIndices(const QList< QHelpDataIndexItem > &indices)
Sets the filter sections list of indices to indices.
QHelpDataFilterSection()
Constructs a help data filter section.
void addFile(const QString &file)
Adds the file file to the filter section.
QStringList files() const
Returns the list of files.
QList< QHelpDataContentItem * > contents() const
Returns a list of top level content items.
void addIndex(const QHelpDataIndexItem &index)
Adds the index item index to the list of indices.
The QHelpProjectData class stores all information found in a Qt help project file.
QHelpProjectData()
Constructs a Qt help project data structure.
~QHelpProjectData()
Destroys the help project data.
QString virtualFolder() const
QMap< QString, QVariant > metaData() const
QString errorMessage() const
Returns an error message if the reading of the Qt help project file failed.
QString namespaceName() const
QList< QHelpDataFilterSection > filterSections() const
bool readData(const QString &fileName)
Reads the file fileName and stores the help data.
QString rootPath() const
QList< QHelpDataCustomFilter > customFilters() const
Combined button and popup list for selecting options.
static const char QHP[]
Definition main.cpp:29
static const char QHC[]
Definition main.cpp:33
int generateCollectionFile(const QByteArray &data, const QString &basePath, const QString outputFile)
Definition main.cpp:42
static const char QCH[]
Definition main.cpp:30
static const char QHCP[]
Definition main.cpp:32
int main(int argc, char *argv[])
[ctor_close]
QHelpDataIndexItem(const QString &n, const QString &id, const QString &r)
bool operator==(const QHelpDataIndexItem &other) const