ThreadWeaver::QObjectDecorator Class
class ThreadWeaver::QObjectDecoratorHeader: | #include <ThreadWeaver/QObjectDecorator> |
CMake: | find_package(KF6 REQUIRED COMPONENTS ThreadWeaver) target_link_libraries(mytarget PRIVATE KF6::ThreadWeaver) |
Inherits: | QObject and ThreadWeaver::IdDecorator |
Public Functions
QObjectDecorator(ThreadWeaver::JobInterface *decoratee, QObject *parent = nullptr) | |
QObjectDecorator(ThreadWeaver::JobInterface *decoratee, bool autoDelete, QObject *parent = nullptr) |
Signals
void | done(ThreadWeaver::JobPointer) |
void | failed(ThreadWeaver::JobPointer) |
void | started(ThreadWeaver::JobPointer) |
Detailed Description
Member Function Documentation
[explicit]
QObjectDecorator::QObjectDecorator(ThreadWeaver::JobInterface *decoratee, QObject *parent = nullptr)
[explicit]
QObjectDecorator::QObjectDecorator(ThreadWeaver::JobInterface *decoratee, bool autoDelete, QObject *parent = nullptr)
[signal]
void QObjectDecorator::done(ThreadWeaver::JobPointer)
This signal is emitted when the job has been finished (no matter if it succeeded or not).
[signal]
void QObjectDecorator::failed(ThreadWeaver::JobPointer)
This job has failed.
This signal is emitted when success() returns false after the job is executed.
[signal]
void QObjectDecorator::started(ThreadWeaver::JobPointer)
This signal is emitted when this job is being processed by a thread.