TextAutoGenerateText::TextAutoGenerateAskJob Class

class TextAutoGenerateText::TextAutoGenerateAskJob

The TextAutoGenerateAskJob class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateAskJob>
Inherits: QObject

Public Functions

TextAutoGenerateAskJob(QObject *parent = nullptr)
virtual ~TextAutoGenerateAskJob() override
bool canStart() const
TextAutoGenerateText::TextAutoGenerateManager *manager() const
void setManager(TextAutoGenerateText::TextAutoGenerateManager *newManager)
void setText(const QString &newText)
void start()
QString text() const

Signals

void errorOccured(const QString &str)
void generateTextDone()
void generateTextInProgress(const TextAutoGenerateText::TextAutoGenerateReply::Response &response)

Detailed Description

Member Function Documentation

[explicit] TextAutoGenerateAskJob::TextAutoGenerateAskJob(QObject *parent = nullptr)

Constructs a new TextAutoGenerateAskJob object parent The parent object

[override virtual noexcept] TextAutoGenerateAskJob::~TextAutoGenerateAskJob()

Destroys the TextAutoGenerateAskJob object

bool TextAutoGenerateAskJob::canStart() const

Returns whether the ask job can be started Returns True if the job can start, false otherwise

[signal] void TextAutoGenerateAskJob::errorOccured(const QString &str)

Emitted when an error occurs str The error message

[signal] void TextAutoGenerateAskJob::generateTextDone()

Emitted when text generation has finished successfully

[signal] void TextAutoGenerateAskJob::generateTextInProgress(const TextAutoGenerateText::TextAutoGenerateReply::Response &response)

Emitted when text generation is in progress response The current response from text generation

TextAutoGenerateText::TextAutoGenerateManager *TextAutoGenerateAskJob::manager() const

Returns the associated TextAutoGenerateManager Returns The manager object

See also setManager().

void TextAutoGenerateAskJob::setManager(TextAutoGenerateText::TextAutoGenerateManager *newManager)

Sets the associated TextAutoGenerateManager newManager The manager to set

See also manager().

void TextAutoGenerateAskJob::setText(const QString &newText)

Sets the text to ask newText The question text to set

See also text().

void TextAutoGenerateAskJob::start()

Starts the ask job

QString TextAutoGenerateAskJob::text() const

Returns the text to ask Returns The question text

See also setText().