#include <scim_signals.h>
Public Types | |
typedef Slot2< R, P1, P2 > | SlotType |
Function signature for handlers connecting to the signal. | |
Public Member Functions | |
Connection | connect (SlotType *slot) |
SlotType * | slot () |
R | emit (P1 p1, P2 p2) |
R | operator() (P1 p1, P2 p2) |
Function operator; calls emit(). |
typedef Slot2<R, P1, P2> scim::Signal2< R, P1, P2, Marshal >::SlotType |
Function signature for handlers connecting to the signal.
Connection scim::Signal2< R, P1, P2, Marshal >::connect | ( | SlotType * | slot | ) | [inline] |
Connect a slot to the signal.
slot | - a slot of type Slot2<R, P1, P2>. |
Referenced by scim::Signal2< void, P1, P2, IgnoreMarshal >::connect().
SlotType* scim::Signal2< R, P1, P2, Marshal >::slot | ( | ) | [inline] |
Returns a slot for this signal.
Referenced by scim::Signal2< void, P1, P2, IgnoreMarshal >::emit(), and scim::Signal2< R, P1, P2, Marshal >::emit().
R scim::Signal2< R, P1, P2, Marshal >::emit | ( | P1 | p1, | |
P2 | p2 | |||
) | [inline] |
Emit the signal.
p1 | - passes p1 to the signal handler. | |
p2 | - passes p2 to the signal handler. |
References scim::Slot2< R, P1, P2 >::call(), scim::Signal::connection_list, and scim::Signal2< R, P1, P2, Marshal >::slot().
Referenced by scim::Signal2< void, P1, P2, IgnoreMarshal >::operator()(), and scim::Signal2< R, P1, P2, Marshal >::operator()().
R scim::Signal2< R, P1, P2, Marshal >::operator() | ( | P1 | p1, | |
P2 | p2 | |||
) | [inline] |