KTextEditor

history.h
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
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.