LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScRefreshTimer Class Reference

#include <refreshtimer.hxx>

Inheritance diagram for ScRefreshTimer:
[legend]
Collaboration diagram for ScRefreshTimer:
[legend]

Public Member Functions

 ScRefreshTimer ()
 
 ScRefreshTimer (sal_Int32 nSeconds)
 
 ScRefreshTimer (const ScRefreshTimer &r)
 
virtual ~ScRefreshTimer () override
 
ScRefreshTimeroperator= (const ScRefreshTimer &r)
 
bool operator== (const ScRefreshTimer &r) const
 
bool operator!= (const ScRefreshTimer &r) const
 
void SetRefreshControl (std::unique_ptr< ScRefreshTimerControl > const *pp)
 
void SetRefreshHandler (const Link< Timer *, void > &rLink)
 
sal_Int32 GetRefreshDelaySeconds () const
 
void StopRefreshTimer ()
 
void SetRefreshDelay (sal_Int32 nSeconds)
 
virtual SC_DLLPUBLIC void Invoke () override
 
- Public Member Functions inherited from AutoTimer
 AutoTimer (const char *pDebugName)
 
- Public Member Functions inherited from Timer
 Timer (const char *pDebugName)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (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
 
Taskoperator= (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 Member Functions

void Launch ()
 

Private Attributes

std::unique_ptr< ScRefreshTimerControl > const * ppControl
 

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 ImplSchedulerDataGetSchedulerData () 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)
 

Detailed Description

Definition at line 41 of file refreshtimer.hxx.

Constructor & Destructor Documentation

◆ ScRefreshTimer() [1/3]

ScRefreshTimer::ScRefreshTimer ( )

Definition at line 49 of file refreshtimer.cxx.

References Timer::SetTimeout().

◆ ScRefreshTimer() [2/3]

ScRefreshTimer::ScRefreshTimer ( sal_Int32  nSeconds)

Definition at line 54 of file refreshtimer.cxx.

References Launch(), and Timer::SetTimeout().

◆ ScRefreshTimer() [3/3]

ScRefreshTimer::ScRefreshTimer ( const ScRefreshTimer r)

Definition at line 60 of file refreshtimer.cxx.

◆ ~ScRefreshTimer()

ScRefreshTimer::~ScRefreshTimer ( )
overridevirtual

Definition at line 64 of file refreshtimer.cxx.

References Task::IsActive(), and Task::Stop().

Member Function Documentation

◆ GetRefreshDelaySeconds()

sal_Int32 ScRefreshTimer::GetRefreshDelaySeconds ( ) const

◆ Invoke()

void ScRefreshTimer::Invoke ( )
overridevirtual

Reimplemented from Timer.

Definition at line 120 of file refreshtimer.cxx.

References Timer::Invoke(), Task::IsActive(), Launch(), and ppControl.

◆ Launch()

void ScRefreshTimer::Launch ( )
private

Definition at line 134 of file refreshtimer.cxx.

References Timer::GetTimeout(), and Timer::Start().

Referenced by Invoke(), ScRefreshTimer(), and SetRefreshDelay().

◆ operator!=()

bool ScRefreshTimer::operator!= ( const ScRefreshTimer r) const

Definition at line 85 of file refreshtimer.cxx.

References operator==().

◆ operator=()

ScRefreshTimer & ScRefreshTimer::operator= ( const ScRefreshTimer r)

Definition at line 70 of file refreshtimer.cxx.

References Timer::operator=(), and SetRefreshControl().

Referenced by ScDBData::operator=().

◆ operator==()

bool ScRefreshTimer::operator== ( const ScRefreshTimer r) const

Definition at line 80 of file refreshtimer.cxx.

References Timer::GetTimeout().

Referenced by operator!=().

◆ SetRefreshControl()

void ScRefreshTimer::SetRefreshControl ( std::unique_ptr< ScRefreshTimerControl > const *  pp)

◆ SetRefreshDelay()

void ScRefreshTimer::SetRefreshDelay ( sal_Int32  nSeconds)

◆ SetRefreshHandler()

void ScRefreshTimer::SetRefreshHandler ( const Link< Timer *, void > &  rLink)

◆ StopRefreshTimer()

void ScRefreshTimer::StopRefreshTimer ( )

Member Data Documentation

◆ ppControl

std::unique_ptr<ScRefreshTimerControl> const* ScRefreshTimer::ppControl
private

Definition at line 43 of file refreshtimer.hxx.

Referenced by Invoke(), and SetRefreshControl().


The documentation for this class was generated from the following files: