24 #ifndef DIGIKAM_PARALLEL_WORKERS_H
25 #define DIGIKAM_PARALLEL_WORKERS_H
59 void setPriority(QThread::Priority priority);
64 bool optimalWorkerCountReached()
const;
70 static int optimalWorkerCount();
76 bool connect(
const char* signal,
77 const QObject* receiver,
79 Qt::ConnectionType type = Qt::AutoConnection)
const;
90 int replacementQtMetacall(QMetaObject::Call _c,
int _id,
void** _a);
91 const QMetaObject* replacementMetaObject()
const;
108 int replacementStaticQtMetacall(QMetaObject::Call _c,
int _id,
void** _a);
109 typedef void (*StaticMetacallFunction)(QObject*, QMetaObject::Call, int,
void**);
163 return WorkerObject::qt_metacall(_c, _id, _a);
168 return A::metaObject();
186 int qt_metacall(QMetaObject::Call _c,
int _id,
void** _a)
override
212 const QObject* receiver,
214 Qt::ConnectionType type = Qt::AutoConnection)
const
Definition: parallelworkers.h:132
int qt_metacall(QMetaObject::Call _c, int _id, void **_a) override
Definition: parallelworkers.h:186
void deactivate(WorkerObject::DeactivatingMode mode=WorkerObject::FlushSignals)
Definition: parallelworkers.h:201
StaticMetacallFunction staticMetacallPointer() override
Definition: parallelworkers.h:176
const QMetaObject * metaObject() const override
Definition: parallelworkers.h:181
bool connect(const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection) const
Definition: parallelworkers.h:211
void wait()
Definition: parallelworkers.h:206
~ParallelAdapter() override
Definition: parallelworkers.h:149
void schedule()
Definition: parallelworkers.h:196
static void qt_static_metacall(QObject *o, QMetaObject::Call _c, int _id, void **_a)
Definition: parallelworkers.h:171
ParallelAdapter()
Definition: parallelworkers.h:145
int WorkerObjectQtMetacall(QMetaObject::Call _c, int _id, void **_a) override
Definition: parallelworkers.h:161
QObject * asQObject() override
Definition: parallelworkers.h:191
const QMetaObject * mocMetaObject() const override
Definition: parallelworkers.h:166
void add(A *const worker)
Definition: parallelworkers.h:153
Definition: parallelworkers.h:40
virtual StaticMetacallFunction staticMetacallPointer()=0
int replacementStaticQtMetacall(QMetaObject::Call _c, int _id, void **_a)
Definition: parallelworkers.cpp:157
QMetaObject * m_replacementMetaObject
Definition: parallelworkers.h:116
void(* StaticMetacallFunction)(QObject *, QMetaObject::Call, int, void **)
Definition: parallelworkers.h:109
void wait()
Definition: parallelworkers.cpp:87
void schedule()
Definition: parallelworkers.cpp:71
void deactivate(WorkerObject::DeactivatingMode mode=WorkerObject::FlushSignals)
Definition: parallelworkers.cpp:79
QList< WorkerObject * > m_workers
Definition: parallelworkers.h:114
virtual const QMetaObject * mocMetaObject() const =0
void add(WorkerObject *const worker)
Definition: parallelworkers.cpp:103
int replacementQtMetacall(QMetaObject::Call _c, int _id, void **_a)
Definition: parallelworkers.cpp:249
virtual int WorkerObjectQtMetacall(QMetaObject::Call _c, int _id, void **_a)=0
StaticMetacallFunction m_originalStaticMetacall
Definition: parallelworkers.h:118
bool connect(const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection) const
Connects signals outbound from all workers to a given receiver.
Definition: parallelworkers.cpp:141
const QMetaObject * replacementMetaObject() const
Definition: parallelworkers.cpp:266
int m_currentIndex
Definition: parallelworkers.h:115
virtual QObject * asQObject()=0
Definition: workerobject.h:45
DeactivatingMode
Definition: workerobject.h:59
@ FlushSignals
Already sent signals are cleared.
Definition: workerobject.h:60
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43