1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_COMPLETIONRECORDER_H
8#define KATEVI_COMPLETIONRECORDER_H
9
10#include "completion.h"
11
12namespace KateVi
13{
14class InputModeManager;
15
16class CompletionRecorder
17{
18public:
19 explicit CompletionRecorder(InputModeManager *viInputModeManager);
20 ~CompletionRecorder();
21
22 void logCompletionEvent(const Completion &completion);
23
24 void start();
25 CompletionList stop();
26
27 CompletionList currentChangeCompletionsLog();
28 void clearCurrentChangeCompletionsLog();
29
30private:
31 InputModeManager *m_viInputModeManager;
32
33 CompletionList m_currentMacroCompletionsLog;
34 CompletionList m_currentChangeCompletionsLog;
35};
36
37}
38
39#endif // KATEVI_COMPLETIONRECORDER_H
40

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