25 #ifndef DIGIKAM_WORKER_OBJECT_H
26 #define DIGIKAM_WORKER_OBJECT_H
42 class WorkerObjectRunnable;
93 void setPriority(QThread::Priority priority);
94 QThread::Priority priority()
const;
102 bool connectAndSchedule(
const QObject* sender,
105 Qt::ConnectionType type = Qt::AutoConnection)
const;
107 static bool connectAndSchedule(
const QObject* sender,
111 Qt::ConnectionType type = Qt::AutoConnection);
113 static bool disconnectAndSchedule(
const QObject* sender,
135 void deactivate(DeactivatingMode mode = FlushSignals);
144 bool transitionToRunning();
145 void transitionToInactive();
148 void setEventLoop(QEventLoop* loop);
149 void addRunnable(WorkerObjectRunnable* loop);
150 void removeRunnable(WorkerObjectRunnable* loop);
173 virtual void aboutToQuitLoop();
182 virtual void aboutToDeactivate();
184 bool event(QEvent* e)
override;
188 friend class WorkerObjectRunnable;
Definition: threadmanager.h:43
Definition: workerobject.h:45
DeactivatingMode
Definition: workerobject.h:59
@ FlushSignals
Already sent signals are cleared.
Definition: workerobject.h:60
@ KeepSignals
The thread is stopped, but already sent signals remain in the queue.
Definition: workerobject.h:61
State
Definition: workerobject.h:51
@ Scheduled
Definition: workerobject.h:53
@ Inactive
Definition: workerobject.h:52
@ Running
Definition: workerobject.h:54
Definition: datefolderview.cpp:43
Definition: abstractalbumtreeview_p.h:85