File indexing completed on 2024-04-21 03:58:06
0001 /* 0002 SPDX-FileCopyrightText: KDE Developers 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KATEVI_COMPLETION_H 0008 #define KATEVI_COMPLETION_H 0009 0010 #include <QList> 0011 #include <QString> 0012 0013 namespace KateVi 0014 { 0015 class Completion 0016 { 0017 public: 0018 enum CompletionType { PlainText, FunctionWithoutArgs, FunctionWithArgs }; 0019 0020 explicit Completion(const QString &completedText, bool removeTail, CompletionType completionType); 0021 QString completedText() const; 0022 bool removeTail() const; 0023 CompletionType completionType() const; 0024 0025 private: 0026 QString m_completedText; 0027 bool m_removeTail; 0028 CompletionType m_completionType; 0029 }; 0030 0031 typedef QList<Completion> CompletionList; 0032 } 0033 0034 #endif // KATEVI_COMPLETION_H