![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
Delegates the SlotClosure deletion decision to the signal handler. More...
#include "slotclosure.h"
Public Types | |
enum | Delete { Delete::No, Delete::Yes } |
Whether the SlotClosure shall be deleted. More... | |
Protected Types | |
using | Signature_t = Delete() |
Protected Member Functions | |
virtual | ~ChoiceDeletePolicy () |
Static Protected Member Functions | |
static void | Invoke (const std::function< Signature_t > &f, SlotClosureBase *base) |
static void | Fired (SlotClosureBase *) |
Delegates the SlotClosure deletion decision to the signal handler.
The signal handler's return value (of enum type ChoiceDeletePolicy::Delete) is used to decide whether the SlotClosure should be deleted. This way, the signal handler may be invoked multiple times until the necessary conditions are met.
Definition at line 227 of file slotclosure.h.
|
protected |
Definition at line 245 of file slotclosure.h.
|
strong |
Whether the SlotClosure shall be deleted.
Enumerator | |
---|---|
No | Do not delete SlotClosure after this invocation. |
Yes | Delete SlotClosure after this invocation. |
Definition at line 232 of file slotclosure.h.
|
inlineprotectedvirtual |
Definition at line 243 of file slotclosure.h.
|
inlinestaticprotected |
Definition at line 253 of file slotclosure.h.
|
inlinestaticprotected |
Definition at line 247 of file slotclosure.h.
References LC::Util::oral::sph::f, and Yes.