Tizen Native API
Dali::Signal< void() > Class Template Reference

A template for Signals with no parameters or return value. More...

Public Member Functions

 Signal ()
 Default constructor.
 ~Signal ()
 Non-virtual destructor.
bool Empty () const
 Query whether there are any connected slots.
std::size_t GetConnectionCount () const
 Query the number of slots.
void Connect (void(*func)())
 Connect a function.
void Disconnect (void(*func)())
 Disconnect a function.
template<class X >
void Connect (X *obj, void(X::*func)())
 Connect a member function.
template<class X >
void Disconnect (X *obj, void(X::*func)())
 Disconnect a member function.
template<class X >
void Connect (SlotDelegate< X > &delegate, void(X::*func)())
 Connect a member function.
template<class X >
void Disconnect (SlotDelegate< X > &delegate, void(X::*func)())
 Disconnect a member function.
template<class X >
void Connect (ConnectionTrackerInterface *connectionTracker, const X &func)
 Connect a function object.
void Connect (ConnectionTrackerInterface *connectionTracker, FunctorDelegate *delegate)
 Connect a function object using FunctorDelegate.
void Emit ()
 Emit the signal.

Detailed Description

template<>
class Dali::Signal< void() >

A template for Signals with no parameters or return value.

Since :
2.4

Constructor & Destructor Documentation

Dali::Signal< void() >::Signal ( )

Default constructor.

Since :
2.4
Dali::Signal< void() >::~Signal ( )

Non-virtual destructor.

Since :
2.4

Member Function Documentation

void Dali::Signal< void() >::Connect ( void(*)()  func)

Connect a function.

Since :
2.4
Parameters:
[in]funcThe function to connect.
template<class X >
void Dali::Signal< void() >::Connect ( X *  obj,
void(X::*)()  func 
)

Connect a member function.

Since :
2.4
Parameters:
[in]objAn object which must implement the ConnectionTrackerInterface.
[in]funcThe member function to connect.
template<class X >
void Dali::Signal< void() >::Connect ( SlotDelegate< X > &  delegate,
void(X::*)()  func 
)

Connect a member function.

Since :
2.4
Parameters:
[in]delegateA slot delegate.
[in]funcThe member function to connect.
template<class X >
void Dali::Signal< void() >::Connect ( ConnectionTrackerInterface connectionTracker,
const X &  func 
)

Connect a function object.

Since :
2.4
Parameters:
[in]connectionTrackerA connection tracker which can be used to disconnect.
[in]funcThe function object to copy.
void Dali::Signal< void() >::Connect ( ConnectionTrackerInterface connectionTracker,
FunctorDelegate delegate 
)

Connect a function object using FunctorDelegate.

Since :
2.4
Parameters:
[in]connectionTrackerA connection tracker which can be used to disconnect.
[in]delegateA newly allocated FunctorDelegate (ownership is taken).
void Dali::Signal< void() >::Disconnect ( void(*)()  func)

Disconnect a function.

Since :
2.4
Parameters:
[in]funcThe function to disconnect.
template<class X >
void Dali::Signal< void() >::Disconnect ( X *  obj,
void(X::*)()  func 
)

Disconnect a member function.

Since :
2.4
Parameters:
[in]objAn object which must implement the ConnectionTrackerInterface.
[in]funcThe member function to disconnect.
template<class X >
void Dali::Signal< void() >::Disconnect ( SlotDelegate< X > &  delegate,
void(X::*)()  func 
)

Disconnect a member function.

Since :
2.4
Parameters:
[in]delegateA slot delegate.
[in]funcThe member function to disconnect.
void Dali::Signal< void() >::Emit ( )

Emit the signal.

Since :
2.4
bool Dali::Signal< void() >::Empty ( ) const

Query whether there are any connected slots.

Since :
2.4
Returns:
True if there are any slots connected to the signal.
std::size_t Dali::Signal< void() >::GetConnectionCount ( ) const

Query the number of slots.

Since :
2.4
Returns:
The number of slots connected to this signal.