Tizen(Headed) Native API  6.5
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)
 Disconnects the signal from the slot.
CallbackBaseGetCallback ()
 Retrieves 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, DALi version 1.0.0

Constructor & Destructor Documentation

Constructor.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]callbackThe callback which should be a C function

Constructor.

Since:
2.4, DALi version 1.0.0
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, DALi version 1.0.0

Member Function Documentation

Disconnects the signal from the slot.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]slotObserverThe signal disconnecting from the slot

Retrieves the callback.

Since:
2.4, DALi version 1.0.0
Returns:
A pointer to the callback