#ifndef PYTHONQTWRAPPER_QEVENTLOOP_H #define PYTHONQTWRAPPER_QEVENTLOOP_H #include #include #include #include #include #include #include class PythonQtWrapper_QEventLoop : public QObject { Q_OBJECT public: Q_ENUMS(ProcessEventsFlag ) enum ProcessEventsFlag{ AllEvents = QEventLoop::AllEvents, ExcludeUserInputEvents = QEventLoop::ExcludeUserInputEvents, ExcludeSocketNotifiers = QEventLoop::ExcludeSocketNotifiers, WaitForMoreEvents = QEventLoop::WaitForMoreEvents, X11ExcludeTimers = QEventLoop::X11ExcludeTimers, DeferredDeletion = QEventLoop::DeferredDeletion}; public slots: QEventLoop* new_QEventLoop(QObject* parent = 0); void delete_QEventLoop(QEventLoop* obj) { delete obj; } int exec(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); void exit(QEventLoop* theWrappedObject, int returnCode = 0); bool isRunning(QEventLoop* theWrappedObject) const; bool processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); void processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags, int maximumTime); void wakeUp(QEventLoop* theWrappedObject); }; #endif // PYTHONQTWRAPPER_QEVENTLOOP_H