TextAutoGenerateText::TextAutoGenerateImportChatBaseJob Class

class TextAutoGenerateText::TextAutoGenerateImportChatBaseJob

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

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

TextAutoGenerateText::TextAutoGenerateImportChatAsJsonJob

Public Functions

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

Signals

void importDone(const QString &title, const QList<TextAutoGenerateText::TextAutoGenerateMessage> &msgs)
void importFailed(const QString &msg)

Protected Functions

virtual void importChat() = 0

Protected Variables

TextAutoGenerateText::TextAutoGenerateImportChatBaseJob::ImportChatInfo mInfo

Detailed Description

Member Function Documentation

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

Constructs a new TextAutoGenerateImportChatBaseJob parent The parent object

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

Destroys the TextAutoGenerateImportChatBaseJob object

bool TextAutoGenerateImportChatBaseJob::canStart() const

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

[pure virtual protected] void TextAutoGenerateImportChatBaseJob::importChat()

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

[signal] void TextAutoGenerateImportChatBaseJob::importDone(const QString &title, const QList<TextAutoGenerateText::TextAutoGenerateMessage> &msgs)

Emitted when import is complete title The title of the imported chat msgs The list of imported messages

[signal] void TextAutoGenerateImportChatBaseJob::importFailed(const QString &msg)

TextAutoGenerateText::TextAutoGenerateImportChatBaseJob::ImportChatInfo TextAutoGenerateImportChatBaseJob::info() const

Returns the import chat information Returns The import chat info

See also setInfo().

void TextAutoGenerateImportChatBaseJob::setInfo(const TextAutoGenerateText::TextAutoGenerateImportChatBaseJob::ImportChatInfo &newInfo)

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

See also info().

void TextAutoGenerateImportChatBaseJob::start()

Starts the import job

Member Variable Documentation

TextAutoGenerateText::TextAutoGenerateImportChatBaseJob::ImportChatInfo TextAutoGenerateImportChatBaseJob::mInfo

This variable holds the import chat information