TextAutoGenerateText::TextAutoGenerateExportChatBaseJob Class

class TextAutoGenerateText::TextAutoGenerateExportChatBaseJob

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

Header: #include <TextAutoGenerateText/TextAutoGenerateExportChatBaseJob>
Inherits: QObject
Inherited By:

TextAutoGenerateText::TextAutoGenerateExportChatAsJsonJob

Public Functions

TextAutoGenerateExportChatBaseJob(QObject *parent = nullptr)
virtual ~TextAutoGenerateExportChatBaseJob() override
bool canStart() const
TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo info() const
void setInfo(const TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo &newInfo)
void start()

Signals

void exportDone(const QString &filename)
void exportFailed(const QString &msg)

Protected Functions

virtual void exportChat() = 0

Protected Variables

TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo mInfo

Detailed Description

Member Function Documentation

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

Constructs a new TextAutoGenerateExportChatBaseJob parent The parent object

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

Destroys the TextAutoGenerateExportChatBaseJob object

bool TextAutoGenerateExportChatBaseJob::canStart() const

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

[pure virtual protected] void TextAutoGenerateExportChatBaseJob::exportChat()

Exports the chat in the format-specific way This method is called by start() and should be implemented by subclasses

[signal] void TextAutoGenerateExportChatBaseJob::exportDone(const QString &filename)

Emitted when export is complete

[signal] void TextAutoGenerateExportChatBaseJob::exportFailed(const QString &msg)

TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo TextAutoGenerateExportChatBaseJob::info() const

Returns the export chat information Returns The export chat info

See also setInfo().

void TextAutoGenerateExportChatBaseJob::setInfo(const TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo &newInfo)

Sets the export chat information newInfo The export chat info to set

See also info().

void TextAutoGenerateExportChatBaseJob::start()

Starts the export job

Member Variable Documentation

TextAutoGenerateText::TextAutoGenerateExportChatBaseJob::ExportChatInfo TextAutoGenerateExportChatBaseJob::mInfo

This variable holds the export chat information