Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
Dali::Internal::Adaptor::EcoreCallbackManager Class Reference

Ecore interface to install call backs in the applications main loop. More...

#include <ecore-callback-manager.h>

Inheritance diagram for Dali::Internal::Adaptor::EcoreCallbackManager:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::EcoreCallbackManager:
Collaboration graph
[legend]

Public Member Functions

 EcoreCallbackManager ()
 constructor More...
 
 ~EcoreCallbackManager ()
 destructor More...
 
virtual bool AddIdleCallback (CallbackBase *callback)
  More...
 
virtual void Start ()
 Starts the callback manager. More...
 
virtual void Stop ()
 Stop the callback manager and can remove all pending callbacks synchronously. More...
 
- Public Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
virtual ~CallbackManager ()
 Virtual destructor. More...
 

Private Types

typedef std::list< CallbackData * > CallbackList
 

Private Member Functions

void RemoveAllCallbacks ()
 Remove all idle call backs that are pending Called by Stop() Always called from the main thread. More...
 
void RemoveCallbackFromContainer (CallbackData *callbackData)
 Removes a single call back from the container Always called from main thread. More...
 
void RemoveStandardCallback (CallbackData *callbackData)
 Remove a standard call back from ecore Always called from main thread. More...
 

Private Attributes

bool mRunning
 flag is set to true if when running More...
 
CallbackList mCallbackContainer
 container of live idle callbacks More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
static CallbackManagerNew ()
 Create a new call back interface. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
 CallbackManager ()
 constructor More...
 

Detailed Description

Ecore interface to install call backs in the applications main loop.

Definition at line 42 of file ecore-callback-manager.h.

Member Typedef Documentation

Definition at line 98 of file ecore-callback-manager.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::EcoreCallbackManager::EcoreCallbackManager ( )

constructor

Definition at line 92 of file ecore-callback-manager.cpp.

Dali::Internal::Adaptor::EcoreCallbackManager::~EcoreCallbackManager ( )
inline

destructor

Definition at line 55 of file ecore-callback-manager.h.

Member Function Documentation

bool Dali::Internal::Adaptor::EcoreCallbackManager::AddIdleCallback ( CallbackBase callback)
virtual
void Dali::Internal::Adaptor::EcoreCallbackManager::RemoveAllCallbacks ( )
private

Remove all idle call backs that are pending Called by Stop() Always called from the main thread.

Definition at line 143 of file ecore-callback-manager.cpp.

References mCallbackContainer, and Dali::Internal::Adaptor::CallbackData::mIdler.

Referenced by Stop().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EcoreCallbackManager::RemoveCallbackFromContainer ( CallbackData callbackData)
private

Removes a single call back from the container Always called from main thread.

Parameters
callbackDatacallback data

Definition at line 138 of file ecore-callback-manager.cpp.

References mCallbackContainer.

Referenced by AddIdleCallback().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::EcoreCallbackManager::RemoveStandardCallback ( CallbackData callbackData)
private

Remove a standard call back from ecore Always called from main thread.

Parameters
callbackDatacallback data
void Dali::Internal::Adaptor::EcoreCallbackManager::Start ( )
virtual

Starts the callback manager.

Implements Dali::Internal::Adaptor::CallbackManager.

Definition at line 98 of file ecore-callback-manager.cpp.

References DALI_ASSERT_DEBUG, and mRunning.

void Dali::Internal::Adaptor::EcoreCallbackManager::Stop ( )
virtual

Stop the callback manager and can remove all pending callbacks synchronously.

This call will synchronise with the main loop and not return until all call backs have been deleted.

Implements Dali::Internal::Adaptor::CallbackManager.

Definition at line 105 of file ecore-callback-manager.cpp.

References DALI_ASSERT_DEBUG, mRunning, and RemoveAllCallbacks().

Here is the call graph for this function:

Member Data Documentation

CallbackList Dali::Internal::Adaptor::EcoreCallbackManager::mCallbackContainer
private

container of live idle callbacks

Definition at line 101 of file ecore-callback-manager.h.

Referenced by AddIdleCallback(), RemoveAllCallbacks(), and RemoveCallbackFromContainer().

bool Dali::Internal::Adaptor::EcoreCallbackManager::mRunning
private

flag is set to true if when running

Definition at line 100 of file ecore-callback-manager.h.

Referenced by AddIdleCallback(), Start(), and Stop().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali