KTextAddons

textautogeneratemanager.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7#include "textautogeneratetext_export.h"
8#include <QObject>
9namespace TextAutogenerateText
10{
11class TextAutoGenerateHistoryModel;
12class TextAutoGenerateChatModel;
13class TEXTAUTOGENERATETEXT_EXPORT TextAutogenerateManager : public QObject
14{
15 Q_OBJECT
16public:
17 explicit TextAutogenerateManager(QObject *parent = nullptr);
18 ~TextAutogenerateManager() override;
19
20 static TextAutogenerateManager *self();
21
22 [[nodiscard]] TextAutoGenerateChatModel *textAutoGenerateChatModel() const;
23
24 [[nodiscard]] TextAutoGenerateHistoryModel *textAutoGenerateHistoryModel() const;
25
26 virtual void loadHistory();
27 virtual void saveHistory();
28
29private:
30 TextAutoGenerateChatModel *const mTextAutoGenerateChatModel;
31 TextAutoGenerateHistoryModel *const mTextAutoGenerateHistoryModel;
32};
33}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:00:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.