File indexing completed on 2024-05-19 15:46:42
0001 /* 0002 SPDX-FileCopyrightText: 2013 Sven Brauch <svenbrauch@googlemail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef QMLJS_WORKER_H 0008 #define QMLJS_WORKER_H 0009 0010 #include <language/codecompletion/codecompletionworker.h> 0011 #include <language/codecompletion/codecompletionmodel.h> 0012 0013 namespace QmlJS { 0014 0015 class CodeCompletionWorker : public KDevelop::CodeCompletionWorker 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit CodeCompletionWorker(KDevelop::CodeCompletionModel* model); 0020 0021 protected: 0022 KDevelop::CodeCompletionContext* createCompletionContext( 0023 const KDevelop::DUContextPointer& context, const QString& contextText, 0024 const QString& followingText, const KDevelop::CursorInRevision& position) const override; 0025 }; 0026 0027 } 0028 0029 #endif // QMLJS_WORKER_H