KTextAddons
8#include "textautogeneratetext_export.h"
11namespace TextAutogenerateText
18class TextAutogenerateTextPluginPrivate;
19class TEXTAUTOGENERATETEXT_EXPORT TextAutogenerateTextPlugin :
public QObject
23 explicit TextAutogenerateTextPlugin(QObject *parent =
nullptr);
24 ~TextAutogenerateTextPlugin()
override;
26 [[nodiscard]]
virtual bool loadSettings() = 0;
28 virtual void clear() = 0;
30 virtual void setPrompt(
const QString &text) = 0;
32 void setHasError(
bool error);
34 [[nodiscard]]
bool ready()
const;
35 void setReady(
bool newReady);
37 void sendMessage(
const QString &str);
38 virtual void cancelRequest(
const QByteArray &uuid) = 0;
40 void editMessage(
const QByteArray &uuid,
const QString &str);
43 void errorOccurred(
const QString &message);
44 void finished(
const TextAutoGenerateMessage &msg);
47 virtual void sendToLLM(
const QString &message,
const QByteArray &uuid) = 0;
50 std::unique_ptr<TextAutogenerateTextPluginPrivate>
const d;
The TextAutoGenerateMessage class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:06:03 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.