9#ifndef THREADWEAVER_QOBJECTDECORATOR_H
10#define THREADWEAVER_QOBJECTDECORATOR_H
14#include "iddecorator.h"
15#include "threadweaver_export.h"
22class THREADWEAVER_EXPORT QObjectDecorator :
public QObject,
public IdDecorator
26 explicit QObjectDecorator(JobInterface *decoratee, QObject *parent =
nullptr);
27 explicit QObjectDecorator(JobInterface *decoratee,
bool autoDelete, QObject *parent =
nullptr);
31 void started(ThreadWeaver::JobPointer);
33 void done(ThreadWeaver::JobPointer);
37 void failed(ThreadWeaver::JobPointer);
40 void defaultBegin(
const JobPointer &job, Thread *thread)
override;
41 void defaultEnd(
const JobPointer &job, Thread *thread)
override;
44typedef QSharedPointer<QObjectDecorator> QJobPointer;