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// Qt-Security score:significant reason:default
4
5#ifndef QHELPDBREADER_H
6#define QHELPDBREADER_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/qbytearray.h>
20#include <QtCore/qobject.h>
21#include <QtCore/qstringlist.h>
22
24
25class QSqlQuery;
26
27class QHelpDBReader : public QObject
28{
30
31public:
41
49
56
65
66 QHelpDBReader(const QString &dbName);
67 QHelpDBReader(const QString &dbName, const QString &uniqueId, QObject *parent);
69
70 bool init();
71
72 QString namespaceName() const;
73 QString virtualFolder() const;
74 QString version() const;
75 IndexTable indexTable() const;
77 QMultiMap<QString, QByteArray> filesData(const QStringList &filterAttributes,
78 const QString &extensionFilter = {}) const;
79 QByteArray fileData(const QString &virtualFolder, const QString &filePath) const;
80
82 QStringList filterAttributes(const QString &filterName = {}) const;
83
84 QVariant metaData(const QString &name) const;
85
86private:
87 QString quote(const QString &string) const;
88 bool initDB();
89 QString qtVersionHeuristic() const;
90
91 bool m_initDone = false;
92 QString m_dbName;
93 QString m_uniqueId;
94 QString m_error;
95 std::unique_ptr<QSqlQuery> m_query;
96 mutable QString m_namespace;
97};
98
99QT_END_NAMESPACE
100
101#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.