Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
Dali::Internal::Adaptor::CallbackManager Class Referenceabstract

Abstract interface to install call backs in to an applications main loop. More...

#include <callback-manager.h>

Inheritance diagram for Dali::Internal::Adaptor::CallbackManager:
Inheritance graph
[legend]

Public Member Functions

virtual ~CallbackManager ()
 Virtual destructor. More...
 
virtual bool AddIdleCallback (CallbackBase *callback)=0
 Adds a call back to be run on idle. More...
 
virtual void Start ()=0
 Starts the callback manager. More...
 
virtual void Stop ()=0
 Stop the callback manager and can remove all pending callbacks synchronously. More...
 

Static Public Member Functions

static CallbackManagerNew ()
 Create a new call back interface. More...
 

Protected Member Functions

 CallbackManager ()
 constructor More...
 

Private Member Functions

 CallbackManager (const CallbackManager &)
 
CallbackManageroperator= (const CallbackManager &)
 

Detailed Description

Abstract interface to install call backs in to an applications main loop.

Definition at line 37 of file callback-manager.h.

Constructor & Destructor Documentation

virtual Dali::Internal::Adaptor::CallbackManager::~CallbackManager ( )
inlinevirtual

Virtual destructor.

Definition at line 50 of file callback-manager.h.

Dali::Internal::Adaptor::CallbackManager::CallbackManager ( )
inlineprotected

constructor

Definition at line 78 of file callback-manager.h.

Dali::Internal::Adaptor::CallbackManager::CallbackManager ( const CallbackManager )
private

Member Function Documentation

virtual bool Dali::Internal::Adaptor::CallbackManager::AddIdleCallback ( CallbackBase callback)
pure virtual

Adds a call back to be run on idle.

Must be call from main thread only.

Parameters
callbackcustom call back function
prioritycall back priority
Returns
true on success

Implemented in Dali::Internal::Adaptor::EcoreCallbackManager, and Dali::Internal::Adaptor::UvCallbackManager.

Referenced by Dali::Internal::Adaptor::Adaptor::AddIdle().

Here is the caller graph for this function:

CallbackManager * Dali::Internal::Adaptor::CallbackManager::New ( )
static

Create a new call back interface.

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

Referenced by Dali::Internal::Adaptor::Adaptor::Initialize().

Here is the caller graph for this function:

CallbackManager& Dali::Internal::Adaptor::CallbackManager::operator= ( const CallbackManager )
private
virtual void Dali::Internal::Adaptor::CallbackManager::Start ( )
pure virtual

Starts the callback manager.

Implemented in Dali::Internal::Adaptor::EcoreCallbackManager, and Dali::Internal::Adaptor::UvCallbackManager.

Referenced by Dali::Internal::Adaptor::Adaptor::Start().

Here is the caller graph for this function:

virtual void Dali::Internal::Adaptor::CallbackManager::Stop ( )
pure 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.

Implemented in Dali::Internal::Adaptor::EcoreCallbackManager, and Dali::Internal::Adaptor::UvCallbackManager.

Referenced by Dali::Internal::Adaptor::Adaptor::Stop().

Here is the caller graph for this function:


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