KTextEditor

completion.h
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 {
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
29private:
30 QString m_completedText;
31 bool m_removeTail;
32 CompletionType m_completionType;
33};
34
35typedef QList<Completion> CompletionList;
36}
37
38#endif // KATEVI_COMPLETION_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.