Tizen Native API
6.5
|
A base class for objects. More...
Inheritance diagram for Dali::BaseObject:
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. |
Detailed Description
A base class for objects.
- Since:
- 2.4, DALi version 1.0.0
Constructor & Destructor Documentation
Dali::BaseObject::BaseObject | ( | ) | [protected] |
Default constructor.
- Since:
- 2.4, DALi version 1.0.0
virtual Dali::BaseObject::~BaseObject | ( | ) | [protected, virtual] |
A reference counted object may only be deleted by calling Unreference().
- Since:
- 2.4, DALi version 1.0.0
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, DALi version 1.0.0
- Parameters:
-
[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
- 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 | ||
) |
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);
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] actionName The command for the action [in] attributes The 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 | ||
) |
Not intended for application developers.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[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)
- Returns:
- True if the signal was available
bool Dali::BaseObject::GetTypeInfo | ( | Dali::TypeInfo & | info | ) | const |
Returns the type info for the Handle.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[out] info The type information
- Returns:
- true if the type info exists
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, DALi version 1.0.0
- 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, DALi version 1.0.0
void Dali::BaseObject::UnregisterObject | ( | ) | [protected] |
Unregisters the object from Object registry.
- Since:
- 2.4, DALi version 1.0.0