#include <signal_slot.h>
Public Member Functions | |
Signal () | |
~Signal () | |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(void)) |
Add receiver to receive pre-defined signals. | |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(A1)) |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(A1, A2)) |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(A1, A2, A3)) |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(A1, A2, A3, A4)) |
template<class T > | |
void | add_slot (T *obj, void(T::*func)(A1, A2, A3, A4, A5)) |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)()) |
Remove receiver from the receivers list. | |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)(A1 arg1)) |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)(A1 arg1, A2 arg2)) |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)(A1 arg1, A2 arg2, A3 arg3)) |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)(A1 arg1, A2 arg2, A3 arg3, A4 arg4)) |
template<class T > | |
bool | remove_slot (T *p, void(T::*func)(A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)) |
void | broadcast () |
Notify all receivers. | |
void | broadcast (A1 arg1) |
void | safe_broadcast (A1 arg1) |
void | broadcast (A1 arg1, A2 arg2) |
void | broadcast (A1 arg1, A2 arg2, A3 arg3) |
void | broadcast (A1 arg1, A2 arg2, A3 arg3, A4 arg4) |
void | broadcast (A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5) |
unsigned int | count () |
Definition at line 143 of file signal_slot.h.
utils::Signal< A1, A2, A3, A4, A5 >::Signal | ( | ) | [inline] |
Definition at line 148 of file signal_slot.h.
utils::Signal< A1, A2, A3, A4, A5 >::~Signal | ( | ) | [inline] |
Definition at line 151 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(A1, A2, A3, A4, A5) | func | |||
) | [inline] |
Definition at line 191 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(A1, A2, A3, A4) | func | |||
) | [inline] |
Definition at line 184 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(A1, A2, A3) | func | |||
) | [inline] |
Definition at line 177 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(A1, A2) | func | |||
) | [inline] |
Definition at line 170 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(A1) | func | |||
) | [inline] |
Definition at line 163 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::add_slot | ( | T * | obj, | |
void(T::*)(void) | func | |||
) | [inline] |
Add receiver to receive pre-defined signals.
Definition at line 156 of file signal_slot.h.
Referenced by main(), text::TextController::paginate(), text::PluginDocImpl::PluginDocImpl(), text::PluginViewImpl::PluginViewImpl(), images::PluginViewImpl::PluginViewImpl(), and text::TextController::search().
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | A1 | arg1, | |
A2 | arg2, | |||
A3 | arg3, | |||
A4 | arg4, | |||
A5 | arg5 | |||
) | [inline] |
Definition at line 301 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | A1 | arg1, | |
A2 | arg2, | |||
A3 | arg3, | |||
A4 | arg4 | |||
) | [inline] |
Definition at line 291 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | A1 | arg1, | |
A2 | arg2, | |||
A3 | arg3 | |||
) | [inline] |
Definition at line 281 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | A1 | arg1, | |
A2 | arg2 | |||
) | [inline] |
Definition at line 271 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | A1 | arg1 | ) | [inline] |
Definition at line 251 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::broadcast | ( | ) | [inline] |
Notify all receivers.
Definition at line 241 of file signal_slot.h.
Referenced by text::SearchTask::execute(), text::RenderTask::execute(), text::PaginationTask::execute(), images::ImagesRenderer::notify_page_ready(), and text::TextController::pause_pagination().
00242 { 00243 ReceiversIter begin = receivers.begin(); 00244 ReceiversIter end = receivers.end(); 00245 for(ReceiversIter it= begin; it != end; ++it) 00246 { 00247 (*(*it))(); 00248 } 00249 }
unsigned int utils::Signal< A1, A2, A3, A4, A5 >::count | ( | ) | [inline] |
Definition at line 312 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)(A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5) | func | |||
) | [inline] |
Definition at line 234 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)(A1 arg1, A2 arg2, A3 arg3, A4 arg4) | func | |||
) | [inline] |
Definition at line 227 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)(A1 arg1, A2 arg2, A3 arg3) | func | |||
) | [inline] |
Definition at line 220 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)(A1 arg1, A2 arg2) | func | |||
) | [inline] |
Definition at line 213 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)(A1 arg1) | func | |||
) | [inline] |
Definition at line 206 of file signal_slot.h.
bool utils::Signal< A1, A2, A3, A4, A5 >::remove_slot | ( | T * | p, | |
void(T::*)() | func | |||
) | [inline] |
Remove receiver from the receivers list.
Definition at line 199 of file signal_slot.h.
void utils::Signal< A1, A2, A3, A4, A5 >::safe_broadcast | ( | A1 | arg1 | ) | [inline] |
safe_broadcast is added for object that will be released during broadcasting.
Definition at line 263 of file signal_slot.h.
00264 { 00265 Signal<A1, A2, A3, A4, A5> object; 00266 object.receivers = receivers; 00267 object.broadcast(arg1); 00268 object.receivers.clear(); 00269 }