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. | |
CallbackBase * | GetCallback () |
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:
- Callback (slot)
- SignalObserver - interface provided by a slot owning object.
It takes ownership of the callback, and will delete it when the connection is destroyed.
- Since :
- 2.4
Constructor & Destructor Documentation
Dali::SignalConnection::SignalConnection | ( | CallbackBase * | callback | ) |
Constructor.
- Since :
- 2.4
- Parameters:
-
[in] callback The callback which should be a C function.
Dali::SignalConnection::SignalConnection | ( | SignalObserver * | signalObserver, |
CallbackBase * | callback | ||
) |
Constructor.
- Since :
- 2.4
- Parameters:
-
[in] signalObserver The signal observer. [in] callback Ownership of this callback object is taken.
Non-virtual destructor, not intended as a base class.
- Since :
- 2.4
Member Function Documentation
void Dali::SignalConnection::Disconnect | ( | SlotObserver * | slotObserver | ) |
Disconnect the signal from the slot.
- Since :
- 2.4
- Parameters:
-
[in] slotObserver The signal disconnecting from the slot.
Retrieve the callback.
- Since :
- 2.4
- Returns:
- A pointer to the callback.