Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
24
QT_BEGIN_NAMESPACE
25
26
class
QQmlLSHelpProviderBase
27
{
28
public
:
29
struct
DocumentLink
30
{
31
QUrl url;
32
QString title;
33
};
34
35
public
:
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
49
class
QQmlLSHelpPluginInterface
50
{
51
public
:
52
QQmlLSHelpPluginInterface
() =
default
;
53
virtual
~
QQmlLSHelpPluginInterface
() =
default
;
54
Q_DISABLE_COPY_MOVE
(
QQmlLSHelpPluginInterface
)
55
56
virtual
std
::
unique_ptr
<
QQmlLSHelpProviderBase
>
initialize
(
const
QString &collectionFile,
57
QObject *parent) = 0;
58
};
59
60
#
define
QQmlLSHelpPluginInterface_iid
"org.qt-project.Qt.QmlLS.HelpPlugin/1.0"
61
Q_DECLARE_INTERFACE(QQmlLSHelpPluginInterface,
QQmlLSHelpPluginInterface_iid
)
62
63
QT_END_NAMESPACE
64
65
#
endif
// QQMLLSHELPPLUGININTERFACE_H
QQmlLSHelpPluginInterface
Definition
qqmllshelpplugininterface_p.h:50
QQmlLSHelpPluginInterface::initialize
virtual std::unique_ptr< QQmlLSHelpProviderBase > initialize(const QString &collectionFile, QObject *parent)=0
QQmlLSHelpPluginInterface::QQmlLSHelpPluginInterface
QQmlLSHelpPluginInterface()=default
QQmlLSHelpPluginInterface::~QQmlLSHelpPluginInterface
virtual ~QQmlLSHelpPluginInterface()=default
QQmlLSHelpPluginInterface_iid
#define QQmlLSHelpPluginInterface_iid
Definition
qqmllshelpplugininterface_p.h:60
qtdeclarative
src
qmlls
qqmllshelpplugininterface_p.h
Generated on
for Qt by
1.18.0