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