aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlls/quick/qqmllsquickplugin_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmlls/quick/qqmllsquickplugin_p.h')
-rw-r--r--src/plugins/qmlls/quick/qqmllsquickplugin_p.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/plugins/qmlls/quick/qqmllsquickplugin_p.h b/src/plugins/qmlls/quick/qqmllsquickplugin_p.h
new file mode 100644
index 0000000000..da6bc6f827
--- /dev/null
+++ b/src/plugins/qmlls/quick/qqmllsquickplugin_p.h
@@ -0,0 +1,47 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef QMLLSQUICKPLUGIN_H
+#define QMLLSQUICKPLUGIN_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/qplugin.h>
+
+#include <QtQmlLS/private/qqmllsplugin_p.h>
+#include <QtQmlDom/private/qqmldomitem_p.h>
+
+QT_BEGIN_NAMESPACE
+
+class QQmlLSQuickCompletionPlugin : public QQmlLSCompletionPlugin
+{
+public:
+ void suggestSnippetsForLeftHandSideOfBinding(const QQmlJS::Dom::DomItem &items,
+ BackInsertIterator result) const override;
+
+ void suggestSnippetsForRightHandSideOfBinding(const QQmlJS::Dom::DomItem &items,
+ BackInsertIterator result) const override;
+};
+
+
+class QQmlLSQuickPlugin : public QObject, QQmlLSPlugin
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID QmlLSPluginInterface_iid FILE "plugin.json")
+ Q_INTERFACES(QQmlLSPlugin)
+public:
+ std::unique_ptr<QQmlLSCompletionPlugin> createCompletionPlugin() const override;
+};
+
+QT_END_NAMESPACE
+
+#endif // QMLLSQUICKPLUGIN_H