Tizen Native API
5.0
|
Interface used to track connections between signals and slots. More...
Public Member Functions | |
ConnectionTrackerInterface () | |
Constructor. | |
virtual | ~ConnectionTrackerInterface () |
Virtual destructor. | |
virtual void | SignalConnected (SlotObserver *slotObserver, CallbackBase *callback)=0 |
Called when a signal is connected. |
Interface used to track connections between signals and slots.
Performs automatic connection and disconnection when either the slot or signal dies.
class MyApp : public ConnectionTracker { Button.ClickedSignal().Connect( this, &MyApp::OnPress ); void OnPress() { std::cout << "hello world" << std::endl; } }
When MyApp is destroyed, it automatically disconnects from Button.ClickSignal. It provides a signal observer interface, to observer when signals are destroyed e.g. if Button object is destroyed while it is still connected.
Constructor.
virtual Dali::ConnectionTrackerInterface::~ConnectionTrackerInterface | ( | ) | [virtual] |
Virtual destructor.
virtual void Dali::ConnectionTrackerInterface::SignalConnected | ( | SlotObserver * | slotObserver, |
CallbackBase * | callback | ||
) | [pure virtual] |
Called when a signal is connected.
[in] | slotObserver | The slot observer i.e. a signal. Ownership is not passed |
[in] | callback | The call back. Ownership is not passed |
Implemented in Dali::Toolkit::Internal::Control, and Dali::ConnectionTracker.