1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QMLLSQUICKPLUGIN_H
5#define QMLLSQUICKPLUGIN_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 purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qplugin.h>
19
20#include <QtQmlLS/private/qqmllsplugin_p.h>
21#include <QtQmlDom/private/qqmldomitem_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQmlLSQuickCompletionPlugin : public QQmlLSCompletionPlugin
26{
27public:
28 void suggestSnippetsForLeftHandSideOfBinding(const QQmlJS::Dom::DomItem &items,
29 BackInsertIterator result) const override;
30
31 void suggestSnippetsForRightHandSideOfBinding(const QQmlJS::Dom::DomItem &items,
32 BackInsertIterator result) const override;
33};
34
35
36class QQmlLSQuickPlugin : public QObject, QQmlLSPlugin
37{
38 Q_OBJECT
39 Q_PLUGIN_METADATA(IID QmlLSPluginInterface_iid FILE "plugin.json")
40 Q_INTERFACES(QQmlLSPlugin)
41public:
42 std::unique_ptr<QQmlLSCompletionPlugin> createCompletionPlugin() const override;
43};
44
45QT_END_NAMESPACE
46
47#endif // QMLLSQUICKPLUGIN_H
48

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtdeclarative/src/plugins/qmlls/quick/qqmllsquickplugin_p.h