|
NuriaProject Framework
0.1
The NuriaProject Framework
|
Functions | |
| template<typename Ret , typename... Args> | |
| Callback & | Nuria::Callback::operator= (Ret(*func)(Args...)) |
| template<typename Ret , typename... Args> | |
| bool | Nuria::Callback::setCallback (Ret(*func)(Args...)) |
| template<typename Class , typename Ret , typename... Args> | |
| bool | Nuria::Callback::setCallback (Class *instance, Ret(Class::*func)(Args...) const) |
| template<typename Ret , typename... Args> | |
| bool | Nuria::Callback::setCallback (std::function< Ret(Args...) > func) |
| bool | Nuria::Callback::setCallback (QObject *receiver, const char *slot, Qt::ConnectionType connectionType=Qt::AutoConnection) |
| bool Nuria::Callback::setCallback | ( | QObject * | receiver, |
| const char * | slot, | ||
| Qt::ConnectionType | connectionType = Qt::AutoConnection |
||
| ) |
Lets the callback point to slot in receiver. Use the SLOT() macro for receiver.
If connectionType is Qt::AutoConnection (The default value), then the connection type will be chosen at invocation-time. It will be Qt::DirectConnection if receiver lives in the current thread. If it lives in another thread, Qt::BlockingQueuedConnection is chosen when the callback returns something (as in, is non-void), else Qt::QueuedConnection is used.
1.8.9.1