Tizen Native API
Dali::BaseObject Class Reference

A base class for objects. More...

Inheritance diagram for Dali::BaseObject:
Dali::RefObject

Public Member Functions

template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal.
bool DoAction (const std::string &actionName, const Property::Map &attributes)
const std::string & GetTypeName () const
bool GetTypeInfo (Dali::TypeInfo &info) const
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)

Protected Member Functions

 BaseObject ()
 Default constructor.
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference().
void RegisterObject ()
 Registers the object as created with the Object registry.
void UnregisterObject ()
 Unregisters the object from Object registry.

Detailed Description

A base class for objects.

Since :
2.4

Constructor & Destructor Documentation

Default constructor.

Since :
2.4
virtual Dali::BaseObject::~BaseObject ( ) [protected, virtual]

A reference counted object may only be deleted by calling Unreference().

Since :
2.4

Member Function Documentation

template<class T >
bool Dali::BaseObject::ConnectSignal ( ConnectionTrackerInterface connectionTracker,
const std::string &  signalName,
const T &  functor 
)

Connects a void() functor to a specified signal.

Since :
2.4
Parameters:
[in]connectionTrackerA connection tracker which can be used to disconnect.
[in]signalNameName of the signal to connect to.
[in]functorThe functor to copy.
Returns:
True if the signal was available.
Precondition:
The signal must be available in this object.
bool Dali::BaseObject::DoAction ( const std::string &  actionName,
const Property::Map attributes 
)

Perform action on this object with the given action name and attributes.

Since :
2.4
Parameters:
[in]actionNameThe command for the action.
[in]attributesThe list of attributes for the action.
Returns:
The action is performed by the object or not.
bool Dali::BaseObject::DoConnectSignal ( ConnectionTrackerInterface connectionTracker,
const std::string &  signalName,
FunctorDelegate functorDelegate 
)

Returns the type info for the Handle.

Since :
2.4
Returns:
The type info.
const std::string& Dali::BaseObject::GetTypeName ( ) const

Returns the type name for the Handle.

Will return an empty string if the typename does not exist. This will happen for types that have not registered with type-registry.

Since :
2.4
Returns:
The type name. Empty string if the typename does not exist.
void Dali::BaseObject::RegisterObject ( ) [protected]

Registers the object as created with the Object registry.

Since :
2.4
void Dali::BaseObject::UnregisterObject ( ) [protected]

Unregisters the object from Object registry.

Since :
2.4