1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_COMPLETION_H
8#define KATEVI_COMPLETION_H
9
10#include <QList>
11#include <QString>
12
13namespace KateVi
14{
15class Completion
16{
17public:
18 enum CompletionType { PlainText, FunctionWithoutArgs, FunctionWithArgs };
19
20 explicit Completion(const QString &completedText, bool removeTail, CompletionType completionType);
21 QString completedText() const;
22 bool removeTail() const;
23 CompletionType completionType() const;
24
25private:
26 QString m_completedText;
27 bool m_removeTail;
28 CompletionType m_completionType;
29};
30
31typedef QList<Completion> CompletionList;
32}
33
34#endif // KATEVI_COMPLETION_H
35

source code of ktexteditor/src/vimode/completion.h