MessageComposer::InsertTextFileJob Class

Header: #include <MessageComposer/InsertTextFileJob>
CMake: find_package(KPim6MessageComposer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MessageComposer)

Public Functions

InsertTextFileJob(QTextEdit *editor, const QUrl &url)
virtual ~InsertTextFileJob() override
void setEncoding(const QString &encoding)

Reimplemented Public Functions

virtual void start() override

Detailed Description

A job that downloads a given URL, interprets the result as a text file with the given encoding and then inserts the text into the editor.

Member Function Documentation

[explicit] InsertTextFileJob::InsertTextFileJob(QTextEdit *editor, const QUrl &url)

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

void InsertTextFileJob::setEncoding(const QString &encoding)

[override virtual] void InsertTextFileJob::start()