1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_HISTORY_H
8#define KATEVI_HISTORY_H
9
10#include <QStringList>
11#include <ktexteditor_export.h>
12
13namespace KateVi
14{
15class History
16{
17public:
18 explicit History() = default;
19 ~History() = default;
20
21 KTEXTEDITOR_EXPORT void append(const QString &historyItem);
22 inline const QStringList &items() const
23 {
24 return m_items;
25 }
26 KTEXTEDITOR_EXPORT void clear();
27 inline bool isEmpty()
28 {
29 return m_items.isEmpty();
30 }
31
32private:
33 QStringList m_items;
34};
35}
36
37#endif // KATEVI_HISTORY_H
38

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