Interface for the Timer and handling the event.
More...
#include <timer.hxx>
Additional Inherited Members |
static void * | operator new (std::size_t nSize) throw (std::bad_alloc) |
| see general class documentation
|
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) throw () |
| see general class documentation
|
static void | operator delete (void *pPtr) throw () |
| see general class documentation
|
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) throw () |
| see general class documentation
|
Detailed Description
Interface for the Timer and handling the event.
Constructor & Destructor Documentation
salhelper::Timer::Timer |
( |
| ) |
|
salhelper::Timer::Timer |
( |
const TTimeValue & |
Time | ) |
|
virtual salhelper::Timer::~Timer |
( |
| ) |
|
|
protectedvirtual |
Member Function Documentation
void salhelper::Timer::addTime |
( |
const TTimeValue & |
Time | ) |
|
Adds Time to the 'fire time'.
sal_Bool salhelper::Timer::expiresBefore |
( |
const Timer * |
pTimer | ) |
const |
Does pTimer expires before us?
TTimeValue salhelper::Timer::getRemainingTime |
( |
| ) |
const |
Returns the remaining time before timer expiration relative to now.
sal_Bool salhelper::Timer::isExpired |
( |
| ) |
const |
sal_Bool salhelper::Timer::isTicking |
( |
| ) |
const |
Returns sal_True if timer is running.
virtual void salhelper::Timer::onShot |
( |
| ) |
|
|
protectedpure virtual |
What should be done when the 'timer fires'.
void salhelper::Timer::setAbsoluteTime |
( |
const TTimeValue & |
Time | ) |
|
Set the absolute time when the timer should fire.
void salhelper::Timer::setRemainingTime |
( |
const TTimeValue & |
Remaining | ) |
|
Set the time to fire to 'now' + Remaining.
Set the time to fire to 'now' + Remaining with repeat interveal Repeat.
void salhelper::Timer::start |
( |
| ) |
|
void salhelper::Timer::stop |
( |
| ) |
|
Friends And Related Function Documentation
friend class TimerManager |
|
friend |
Member Data Documentation
holds the time of exparation of this timer.
holds the time interveal of successive expirations.
holds (initial) exparation time of this timer.
Timer* salhelper::Timer::m_pNext |
|
protected |
Pointer to the next timer (to fire).
The documentation for this class was generated from the following file: