4#ifndef QHELPDATAINTERFACE_H
5#define QHELPDATAINTERFACE_H
18#include <QtCore/QSharedData>
19#include <QtCore/QStringList>
20#include <QtCore/QVariant>
24class QHelpDataContentItem
27 QHelpDataContentItem(QHelpDataContentItem *parent,
const QString &title,
28 const QString &reference);
29 ~QHelpDataContentItem();
31 QString title()
const;
32 QString reference()
const;
33 QList<QHelpDataContentItem*> children()
const;
38 QList<QHelpDataContentItem*> m_children;
76 void setIndices(
const QList<QHelpDataIndexItem> &indices);
79 void addContent(QHelpDataContentItem *content);
80 void setContents(
const QList<QHelpDataContentItem*> &contents);
83 void addFile(
const QString &file);
84 void setFiles(
const QStringList &files);
88 QSharedDataPointer<QHelpDataFilterSectionData> d;
int main(int argc, char *argv[])
[2]
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)
bool checkLinks(const QHelpProjectData &helpData)
bool generate(QHelpProjectData *helpData, const QString &outputFileName)
~QHelpDataFilterSectionData()
QList< QHelpDataContentItem * > contents
QStringList filterAttributes
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.
QList< QHelpDataCustomFilter > customFilters() const
Combined button and popup list for selecting options.
int generateCollectionFile(const QByteArray &data, const QString &basePath, const QString outputFile)
QStringList filterAttributes
QHelpDataIndexItem(const QString &n, const QString &id, const QString &r)
bool operator==(const QHelpDataIndexItem &other) const