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
qhelpdbreader_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 LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QHELPDBREADER_H
5#define QHELPDBREADER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of the help generator tools. This header file may change from version
13// to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qbytearray.h>
19#include <QtCore/qobject.h>
20#include <QtCore/qstringlist.h>
21
23
24class QSqlQuery;
25
26class QHelpDBReader : public QObject
27{
29
30public:
40
48
55
64
65 QHelpDBReader(const QString &dbName);
66 QHelpDBReader(const QString &dbName, const QString &uniqueId, QObject *parent);
68
69 bool init();
70
71 QString namespaceName() const;
72 QString virtualFolder() const;
73 QString version() const;
74 IndexTable indexTable() const;
76 QMultiMap<QString, QByteArray> filesData(const QStringList &filterAttributes,
77 const QString &extensionFilter = {}) const;
78 QByteArray fileData(const QString &virtualFolder, const QString &filePath) const;
79
81 QStringList filterAttributes(const QString &filterName = {}) const;
82
83 QVariant metaData(const QString &name) const;
84
85private:
86 QString quote(const QString &string) const;
87 bool initDB();
88 QString qtVersionHeuristic() const;
89
90 bool m_initDone = false;
91 QString m_dbName;
92 QString m_uniqueId;
93 QString m_error;
94 std::unique_ptr<QSqlQuery> m_query;
95 mutable QString m_namespace;
96};
97
98QT_END_NAMESPACE
99
100#endif // QHELPDBREADER_H
QCompressedHelpInfoPrivate(const QCompressedHelpInfoPrivate &other)
QCompressedHelpInfoPrivate()=default
QList< ContentsItem > contentsItems
QList< FileItem > fileItems
QList< IndexItem > indexItems
QMultiMap< QString, QByteArray > filesData(const QStringList &filterAttributes, const QString &extensionFilter={}) const
QString namespaceName() const
IndexTable indexTable() const
QString virtualFolder() const
QByteArray fileData(const QString &virtualFolder, const QString &filePath) const
QHelpDBReader(const QString &dbName, const QString &uniqueId, QObject *parent)
QVariant metaData(const QString &name) const
QStringList filterAttributes(const QString &filterName={}) const
QString version() const
QList< QStringList > filterAttributeSets() const
QStringList customFilters() const
QHelpDBReader(const QString &dbName)
\inmodule QtCore
Combined button and popup list for selecting options.