LibreOffice Module svx (master) 1
|
#include <scheduler.hxx>
Public Member Functions | |
SAL_DLLPRIVATE | Scheduler () |
virtual | ~Scheduler () override |
virtual void | Invoke () override |
SAL_DLLPRIVATE sal_uInt32 | GetTime () const |
SAL_DLLPRIVATE void | SetTime (sal_uInt32 nTime) |
SAL_DLLPRIVATE void | triggerEvents () |
SAL_DLLPRIVATE void | checkTimeout () |
void | InsertEvent (Event &rNew) |
SAL_DLLPRIVATE void | RemoveEvent (Event *pOld) |
SAL_DLLPRIVATE bool | IsPaused () const |
SAL_DLLPRIVATE void | SetPaused (bool bNew) |
Public Member Functions inherited from Timer | |
Timer (const char *pDebugName) | |
Timer (const Timer &rTimer) | |
virtual | ~Timer () override |
Timer & | operator= (const Timer &rTimer) |
virtual void | Invoke () override |
void | Invoke (Timer *arg) |
void | SetInvokeHandler (const Link< Timer *, void > &rLink) |
void | ClearInvokeHandler () |
void | SetTimeout (sal_uInt64 nTimeoutMs) |
sal_uInt64 | GetTimeout () const |
virtual void | Start (bool bStartTimer=true) override |
Public Member Functions inherited from Task | |
Task (const char *pDebugName) | |
Task (const Task &rTask) | |
virtual | ~Task () COVERITY_NOEXCEPT_FALSE |
Task & | operator= (const Task &rTask) |
void | SetPriority (TaskPriority ePriority) |
TaskPriority | GetPriority () const |
const char * | GetDebugName () const |
virtual void | Invoke ()=0 |
virtual void | Start (bool bStartTimer=true) |
void | Stop () |
bool | IsActive () const |
void | SetStatic () |
bool | IsStatic () const |
Private Attributes | |
sal_uInt32 | mnTime |
sal_uInt32 | mnDeltaTime |
std::vector< Event * > | mvEvents |
bool | mbIsPaused |
Additional Inherited Members | |
Protected Member Functions inherited from Timer | |
virtual void | SetDeletionFlags () override |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Timer (bool bAuto, const char *pDebugName) | |
Protected Member Functions inherited from Task | |
const ImplSchedulerData * | GetSchedulerData () const |
virtual void | SetDeletionFlags () |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const=0 |
Static Protected Member Functions inherited from Task | |
static void | StartTimer (sal_uInt64 nMS) |
Definition at line 50 of file scheduler.hxx.
Scheduler::Scheduler | ( | ) |
Definition at line 47 of file scheduler.cxx.
References Task::SetPriority().
|
overridevirtual |
Definition at line 56 of file scheduler.cxx.
References Task::Stop().
void Scheduler::checkTimeout | ( | ) |
Definition at line 98 of file scheduler.cxx.
References IsPaused(), mnDeltaTime, mnTime, mvEvents, Timer::SetTimeout(), Timer::Start(), and Task::Stop().
Referenced by InsertEvent(), Invoke(), RemoveEvent(), SetPaused(), and SetTime().
|
inline |
Definition at line 74 of file scheduler.hxx.
Referenced by sdr::overlay::OverlayManager::impApplyAddActions(), and sdr::animation::PrimitiveAnimation::prepareNextEvent().
void Scheduler::InsertEvent | ( | Event & | rNew | ) |
Definition at line 144 of file scheduler.cxx.
References checkTimeout(), and mvEvents.
Referenced by sdr::animation::PrimitiveAnimation::prepareNextEvent().
|
overridevirtual |
Reimplemented from Timer.
Definition at line 61 of file scheduler.cxx.
References checkTimeout(), mnDeltaTime, mnTime, Task::Stop(), and triggerEvents().
|
inline |
Definition at line 90 of file scheduler.hxx.
Referenced by checkTimeout(), SdrPaintView::SetAnimationPause(), and SetTime().
void Scheduler::RemoveEvent | ( | Event * | pOld | ) |
Definition at line 153 of file scheduler.cxx.
References checkTimeout(), and mvEvents.
Referenced by sdr::overlay::OverlayManager::impApplyRemoveActions(), and sdr::animation::PrimitiveAnimation::~PrimitiveAnimation().
void Scheduler::SetPaused | ( | bool | bNew | ) |
Definition at line 162 of file scheduler.cxx.
References checkTimeout(), and mbIsPaused.
Referenced by SdrPaintView::SetAnimationPause().
void Scheduler::SetTime | ( | sal_uInt32 | nTime | ) |
Definition at line 119 of file scheduler.cxx.
References checkTimeout(), IsPaused(), mnDeltaTime, mnTime, mvEvents, Task::Stop(), and triggerEvents().
Referenced by SdrPaintView::SetAnimationTimer().
void Scheduler::triggerEvents | ( | ) |
|
private |
Definition at line 63 of file scheduler.hxx.
Referenced by SetPaused().
|
private |
Definition at line 56 of file scheduler.hxx.
Referenced by checkTimeout(), Invoke(), and SetTime().
|
private |
Definition at line 53 of file scheduler.hxx.
Referenced by checkTimeout(), Invoke(), SetTime(), and triggerEvents().
|
private |
Definition at line 59 of file scheduler.hxx.
Referenced by checkTimeout(), InsertEvent(), RemoveEvent(), SetTime(), and triggerEvents().