Tizen Native API
Dali::SignalConnection Class Reference

SignalConnection is the connection information held by the signal. More...

Public Member Functions

 SignalConnection (CallbackBase *callback)
 Constructor.
 SignalConnection (SignalObserver *signalObserver, CallbackBase *callback)
 Constructor.
 ~SignalConnection ()
 Non-virtual destructor, not intended as a base class.
void Disconnect (SlotObserver *slotObserver)
 Disconnect the signal from the slot.
CallbackBaseGetCallback ()
 Retrieve the callback.

Detailed Description

SignalConnection is the connection information held by the signal.

A signal can have zero to many connections, depending on how many slots are connected to this signal.

A connection contains:

It takes ownership of the callback, and will delete it when the connection is destroyed.

Since :
2.4

Constructor & Destructor Documentation

Constructor.

Since :
2.4
Parameters:
[in]callbackThe callback which should be a C function.

Constructor.

Since :
2.4
Parameters:
[in]signalObserverThe signal observer.
[in]callbackOwnership of this callback object is taken.

Non-virtual destructor, not intended as a base class.

Since :
2.4

Member Function Documentation

Disconnect the signal from the slot.

Since :
2.4
Parameters:
[in]slotObserverThe signal disconnecting from the slot.

Retrieve the callback.

Since :
2.4
Returns:
A pointer to the callback.