PythonQtWrapper_QtConcurrent.h
26 lines
| 794 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTCONCURRENT_H | ||
#define PYTHONQTWRAPPER_QTCONCURRENT_H | ||||
#include <qtconcurrentexception.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qtconcurrentreducekernel.h> | ||||
#include <qtconcurrentthreadengine.h> | ||||
class PythonQtWrapper_QtConcurrent : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ReduceOption ThreadFunctionResult ) | ||||
florianlink
|
r73 | Q_FLAGS(ReduceOptions ) | ||
florianlink
|
r13 | enum ReduceOption{ | ||
UnorderedReduce = QtConcurrent::UnorderedReduce, OrderedReduce = QtConcurrent::OrderedReduce, SequentialReduce = QtConcurrent::SequentialReduce}; | ||||
enum ThreadFunctionResult{ | ||||
ThrottleThread = QtConcurrent::ThrottleThread, ThreadFinished = QtConcurrent::ThreadFinished}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(ReduceOptions, ReduceOption) | ||
florianlink
|
r13 | public slots: | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QTCONCURRENT_H | ||||