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
qqmllshelpplugininterface_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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 QQMLLSHELPPLUGININTERFACE_H
6#define QQMLLSHELPPLUGININTERFACE_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 purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qstring.h>
20#include <QtCore/qurl.h>
21#include <QtCore/qobject.h>
22#include <vector>
23
24QT_BEGIN_NAMESPACE
25
26class QQmlLSHelpProviderBase
27{
28public:
29 struct DocumentLink
30 {
31 QUrl url;
32 QString title;
33 };
34
35public:
36 virtual ~QQmlLSHelpProviderBase() = default;
37 virtual bool registerDocumentation(const QString &documentationFileName) = 0;
38 [[nodiscard]] virtual QByteArray fileData(const QUrl &url) const = 0;
39 [[nodiscard]] virtual std::vector<DocumentLink> documentsForIdentifier(const QString &id) const = 0;
40 [[nodiscard]] virtual std::vector<DocumentLink>
41 documentsForIdentifier(const QString &id, const QString &filterName) const = 0;
42 [[nodiscard]] virtual std::vector<DocumentLink> documentsForKeyword(const QString &keyword) const = 0;
43 [[nodiscard]] virtual std::vector<DocumentLink>
44 documentsForKeyword(const QString &keyword, const QString &filterName) const = 0;
45 [[nodiscard]] virtual QStringList registeredNamespaces() const = 0;
46 [[nodiscard]] virtual QString error() const = 0;
47};
48
59
60#define QQmlLSHelpPluginInterface_iid "org.qt-project.Qt.QmlLS.HelpPlugin/1.0"
61Q_DECLARE_INTERFACE(QQmlLSHelpPluginInterface, QQmlLSHelpPluginInterface_iid)
62
63QT_END_NAMESPACE
64
65#endif // QQMLLSHELPPLUGININTERFACE_H
QQmlLSHelpPluginInterface()=default
virtual ~QQmlLSHelpPluginInterface()=default
#define QQmlLSHelpPluginInterface_iid