Tizen Native API
4.0
|
A base class for objects. More...
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) |
Not intended for application developers. | |
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. |
A base class for objects.
Dali::BaseObject::BaseObject | ( | ) | [protected] |
Default constructor.
virtual Dali::BaseObject::~BaseObject | ( | ) | [protected, virtual] |
A reference counted object may only be deleted by calling Unreference().
bool Dali::BaseObject::ConnectSignal | ( | ConnectionTrackerInterface * | connectionTracker, |
const std::string & | signalName, | ||
const T & | functor | ||
) |
Connects a void() functor to a specified signal.
[in] | connectionTracker | A connection tracker which can be used to disconnect |
[in] | signalName | Name of the signal to connect to |
[in] | functor | The functor to copy |
bool Dali::BaseObject::DoAction | ( | const std::string & | actionName, |
const Property::Map & | attributes | ||
) |
Performs an action on this object with the given action name and attributes.
Usage example: -
BaseHandle handle = SomeClass::New(); // Initialized with New() method Property::Map attributes; // Type is Property Map handle.DoAction("show", attributes);
[in] | actionName | The command for the action |
[in] | attributes | The list of attributes for the action |
bool Dali::BaseObject::DoConnectSignal | ( | ConnectionTrackerInterface * | connectionTracker, |
const std::string & | signalName, | ||
FunctorDelegate * | functorDelegate | ||
) |
Not intended for application developers.
[in] | connectionTracker | A connection tracker which can be used to disconnect |
[in] | signalName | Name of the signal to connect to |
[in] | functorDelegate | A newly allocated functor delegate (takes ownership) |
bool Dali::BaseObject::GetTypeInfo | ( | Dali::TypeInfo & | info | ) | const |
Returns the type info for the Handle.
[in] | info | The type information |
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.
void Dali::BaseObject::RegisterObject | ( | ) | [protected] |
Registers the object as created with the Object registry.
void Dali::BaseObject::UnregisterObject | ( | ) | [protected] |
Unregisters the object from Object registry.