| 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 | |
| 13 | namespace KateVi |
| 14 | { |
| 15 | class Completion |
| 16 | { |
| 17 | public: |
| 18 | enum CompletionType { |
| 19 | PlainText, |
| 20 | FunctionWithoutArgs, |
| 21 | FunctionWithArgs |
| 22 | }; |
| 23 | |
| 24 | explicit Completion(const QString &completedText, bool removeTail, CompletionType completionType); |
| 25 | QString completedText() const; |
| 26 | bool removeTail() const; |
| 27 | CompletionType completionType() const; |
| 28 | |
| 29 | private: |
| 30 | QString m_completedText; |
| 31 | bool m_removeTail; |
| 32 | CompletionType m_completionType; |
| 33 | }; |
| 34 | |
| 35 | typedef QList<Completion> CompletionList; |
| 36 | } |
| 37 | |
| 38 | #endif // KATEVI_COMPLETION_H |
| 39 | |