23 #ifndef WORKERTHREAD_H
24 #define WORKERTHREAD_H
29 #include <QWaitCondition>
32 #include "baseexception.h"
76 BaseException::operator=(other);
93 virtual const char *what()
const throw()
95 return "Unknown exception thrown by a ThreadOperation, cannot provide further information";
115 virtual void stop() = 0;
120 virtual void run() = 0;
137 void stopCurrentOperation();
163 void exceptionDuringOperation(BaseException *e);
167 QQueue<ThreadOperation*> operations;
171 QWaitCondition waitForOperationsToDo;
180 QList<BaseException *> exceptions;