|
swift
|
Utility class which blocks until a signal is emitted or timeout reached. More...
#include <eventloop.h>
Public Member Functions | |
| CEventLoop () | |
| Constructor. | |
| CEventLoop (QObject *guard) | |
| Constructor. Guard object must exist, and will be checked again when the loop quits. | |
| template<typename T, typename F> | |
| void | stopWhen (const T *sender, F signal) |
| Event loop will stop if the given signal is received. | |
| template<typename T, typename F1, typename F2> | |
| void | stopWhen (const T *sender, F1 signal, F2 &&condition) |
| Event loop will stop if the given signal is received and condition returns true. | |
| bool | exec (int timeoutMs) |
| Begin processing events until the timeout or stop condition occurs. | |
| bool | isGuardAlive () const |
| True if the guard object still exists. | |
Utility class which blocks until a signal is emitted or timeout reached.
Definition at line 19 of file eventloop.h.
|
inline |
Constructor.
Definition at line 23 of file eventloop.h.
|
inline |
Constructor. Guard object must exist, and will be checked again when the loop quits.
Definition at line 26 of file eventloop.h.
|
inline |
Begin processing events until the timeout or stop condition occurs.
Definition at line 54 of file eventloop.h.
|
inline |
True if the guard object still exists.
Definition at line 64 of file eventloop.h.
|
inline |
Event loop will stop if the given signal is received.
Definition at line 34 of file eventloop.h.
|
inline |
Event loop will stop if the given signal is received and condition returns true.
Definition at line 41 of file eventloop.h.