|
Tizen Native API
6.0
|
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. | |
| CallbackBase * | GetCallback () |
| 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:
- 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, DALi version 1.0.0
Constructor & Destructor Documentation
| Dali::SignalConnection::SignalConnection | ( | CallbackBase * | callback | ) |
Constructor.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] callback The callback which should be a C function
| Dali::SignalConnection::SignalConnection | ( | SignalObserver * | signalObserver, |
| CallbackBase * | callback | ||
| ) |
Constructor.
- Since:
- 2.4, DALi version 1.0.0
- 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, DALi version 1.0.0
Member Function Documentation
| void Dali::SignalConnection::Disconnect | ( | SlotObserver * | slotObserver | ) |
Disconnects the signal from the slot.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] slotObserver The signal disconnecting from the slot
Retrieves the callback.
- Since:
- 2.4, DALi version 1.0.0
- Returns:
- A pointer to the callback