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

Implementation of the timer. More...

#include <timer-impl.h>

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

Classes

struct  Impl
 Struct to hide away Ecore implementation details. More...
 

Public Member Functions

 Timer (unsigned int milliSec)
 Constructor. More...
 
virtual ~Timer ()
 Destructor. More...
 
virtual void Start ()
 Start timer. More...
 
virtual void Stop ()
 Stop timer. More...
 
virtual void SetInterval (unsigned int interval)
 Sets a new interval on the timer and starts the timer. More...
 
virtual unsigned int GetInterval () const
 Get the interval of timer. More...
 
virtual bool IsRunning () const
 Tells whether timer is running. More...
 
bool Tick ()
 Tick. More...
 
Dali::Timer::TimerSignalTypeTickSignal ()
 
void MockEmitSignal ()
 
 Timer (unsigned int milliSec)
 
virtual ~Timer ()
 
void Start ()
 Start timer. More...
 
void Stop ()
 Stop timer. More...
 
void SetInterval (unsigned int interval)
 Sets a new interval on the timer and starts the timer. More...
 
unsigned int GetInterval () const
 Get the interval of timer. More...
 
bool IsRunning () const
 Tells whether timer is running. More...
 
bool Tick ()
 
Dali::Timer::TimerSignalTypeTickSignal ()
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static TimerPtr New (unsigned int milliSec)
 
static TimerPtr New (unsigned int milliSec)
 

Private Member Functions

 Timer (const Timer &)
 
Timeroperator= (const Timer &)
 
 Timer (const Timer &)
 
Timeroperator= (const Timer &)
 

Private Attributes

Dali::Timer::TimerSignalType mTickSignal
 
ImplmImpl
 
unsigned int mInterval
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::TimerInterface
virtual ~TimerInterface ()
 Virtual protected destructor, no deletion through this interface. More...
 

Detailed Description

Implementation of the timer.

Definition at line 44 of file timer-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::Timer::Timer ( unsigned int  milliSec)

Constructor.

Parameters
[in]milliSecInterval in milliseconds.

Definition at line 67 of file ecore-timer-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::Timer::~Timer ( )
virtual

Destructor.

Definition at line 72 of file ecore-timer-impl.cpp.

References mImpl, and Stop().

Here is the call graph for this function:

Dali::Internal::Adaptor::Timer::Timer ( const Timer )
private
Dali::Internal::Adaptor::Timer::Timer ( unsigned int  milliSec)
virtual Dali::Internal::Adaptor::Timer::~Timer ( )
virtual
Dali::Internal::Adaptor::Timer::Timer ( const Timer )
private

Member Function Documentation

unsigned int Dali::Internal::Adaptor::Timer::GetInterval ( ) const
virtual

Get the interval of timer.

Returns
Interval in milliseconds. .0

Implements Dali::Internal::Adaptor::TimerInterface.

unsigned int Dali::Internal::Adaptor::Timer::GetInterval ( ) const
virtual

Get the interval of timer.

Returns
Interval in milliseconds. .0

Implements Dali::Internal::Adaptor::TimerInterface.

Definition at line 107 of file ecore-timer-impl.cpp.

References mImpl, and Dali::Internal::Adaptor::Timer::Impl::mInterval.

bool Dali::Internal::Adaptor::Timer::IsRunning ( ) const
virtual

Tells whether timer is running.

.0

Returns
Whether Timer is started or not.

Implements Dali::Internal::Adaptor::TimerInterface.

bool Dali::Internal::Adaptor::Timer::IsRunning ( ) const
virtual

Tells whether timer is running.

.0

Returns
Whether Timer is started or not.

Implements Dali::Internal::Adaptor::TimerInterface.

Definition at line 148 of file ecore-timer-impl.cpp.

References Dali::Internal::Adaptor::Timer::Impl::mId, and mImpl.

void Dali::Internal::Adaptor::Timer::MockEmitSignal ( )

Definition at line 142 of file toolkit-timer.cpp.

References Dali::Internal::Adaptor::gTickSignal.

TimerPtr Dali::Internal::Adaptor::Timer::New ( unsigned int  milliSec)
static

Definition at line 61 of file ecore-timer-impl.cpp.

References Timer().

Referenced by Dali::Timer::New().

Here is the call graph for this function:

Here is the caller graph for this function:

static TimerPtr Dali::Internal::Adaptor::Timer::New ( unsigned int  milliSec)
static
Timer& Dali::Internal::Adaptor::Timer::operator= ( const Timer )
private
Timer& Dali::Internal::Adaptor::Timer::operator= ( const Timer )
private
void Dali::Internal::Adaptor::Timer::SetInterval ( unsigned int  intervalInMilliseconds)
virtual

Sets a new interval on the timer and starts the timer.

Cancels the previous timer. .0

Parameters
milliSecInterval in milliseconds.

Implements Dali::Internal::Adaptor::TimerInterface.

void Dali::Internal::Adaptor::Timer::SetInterval ( unsigned int  interval)
virtual

Sets a new interval on the timer and starts the timer.

Cancels the previous timer. .0

Parameters
milliSecInterval in milliseconds.

Implements Dali::Internal::Adaptor::TimerInterface.

Definition at line 98 of file ecore-timer-impl.cpp.

References mImpl, Dali::Internal::Adaptor::Timer::Impl::mInterval, Start(), and Stop().

Here is the call graph for this function:

void Dali::Internal::Adaptor::Timer::Start ( )
virtual

Start timer.

In case a Timer is already running it's time is reset and timer is restarted. .0

Implements Dali::Internal::Adaptor::TimerInterface.

void Dali::Internal::Adaptor::Timer::Start ( )
virtual

Start timer.

In case a Timer is already running it's time is reset and timer is restarted. .0

Implements Dali::Internal::Adaptor::TimerInterface.

Definition at line 80 of file ecore-timer-impl.cpp.

References ecore_timer_add(), Dali::Internal::Adaptor::Timer::Impl::mId, mImpl, Dali::Internal::Adaptor::Timer::Impl::mInterval, Stop(), and Dali::Internal::Adaptor::anonymous_namespace{ecore-timer-impl.cpp}::TimerSourceFunc().

Referenced by SetInterval().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Stop timer.

.0

Implements Dali::Internal::Adaptor::TimerInterface.

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

Stop timer.

.0

Implements Dali::Internal::Adaptor::TimerInterface.

Definition at line 89 of file ecore-timer-impl.cpp.

References ecore_timer_del(), Dali::Internal::Adaptor::Timer::Impl::mId, and mImpl.

Referenced by SetInterval(), Start(), Tick(), Dali::Internal::Adaptor::anonymous_namespace{uv-timer-impl.cpp}::TimerSourceFunc(), and ~Timer().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::Adaptor::Timer::Tick ( )
bool Dali::Internal::Adaptor::Timer::Tick ( )

Tick.

Definition at line 112 of file ecore-timer-impl.cpp.

References mTickSignal, and Stop().

Referenced by Dali::Internal::Adaptor::anonymous_namespace{ecore-timer-impl.cpp}::TimerSourceFunc(), and Dali::Internal::Adaptor::anonymous_namespace{uv-timer-impl.cpp}::TimerSourceFunc().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Timer::TimerSignalType& Dali::Internal::Adaptor::Timer::TickSignal ( )
Dali::Timer::TimerSignalType & Dali::Internal::Adaptor::Timer::TickSignal ( )

Definition at line 143 of file ecore-timer-impl.cpp.

References mTickSignal.

Member Data Documentation

Impl* Dali::Internal::Adaptor::Timer::mImpl
private

Definition at line 107 of file timer-impl.h.

Referenced by GetInterval(), IsRunning(), SetInterval(), Start(), Stop(), and ~Timer().

unsigned int Dali::Internal::Adaptor::Timer::mInterval
private

Definition at line 71 of file toolkit-timer.cpp.

Dali::Timer::TimerSignalType Dali::Internal::Adaptor::Timer::mTickSignal
private

Definition at line 104 of file timer-impl.h.

Referenced by Tick(), and TickSignal().


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