21 #ifndef INCLUDED_SALHELPER_TIMER_HXX 22 #define INCLUDED_SALHELPER_TIMER_HXX 54 Nanosec = (MilliSecs % 1000) * 1000000L;
144 void SAL_CALL start();
148 void SAL_CALL stop();
152 sal_Bool SAL_CALL isTicking()
const;
156 sal_Bool SAL_CALL isExpired()
const;
160 sal_Bool SAL_CALL expiresBefore(
const Timer* pTimer )
const;
164 void SAL_CALL setAbsoluteTime(
const TTimeValue& Time );
168 void SAL_CALL setRemainingTime(
const TTimeValue& Remaining );
191 virtual void SAL_CALL onShot() = 0;
221 friend class TimerManager;
226 #endif // INCLUDED_SALHELPER_TIMER_HXX Timer * m_pNext
Pointer to the next timer (to fire).
Definition: timer.hxx:209
sal_uInt32 Seconds
Definition: time.h:71
TTimeValue(const TimeValue &rTimeValue)
Definition: timer.hxx:65
TTimeValue(const TTimeValue &rTimeValue)
Definition: timer.hxx:59
Definition: condition.hxx:29
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:410
sal_uInt32 Nanosec
Definition: time.h:72
Helper class for easier manipulation with TimeValue.
Definition: timer.hxx:35
unsigned char sal_Bool
Definition: types.h:48
bool operator<(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:96
TTimeValue(sal_uInt32 MilliSecs)
Definition: timer.hxx:51
bool operator>(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:106
TTimeValue m_aExpired
holds the time of exparation of this timer.
Definition: timer.hxx:201
A simple base implementation for reference-counted objects.
Definition: simplereferenceobject.hxx:57
#define SALHELPER_DLLPUBLIC
Definition: salhelperdllapi.h:28
TTimeValue m_aTimeOut
holds (initial) exparation time of this timer.
Definition: timer.hxx:197
bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:116
void addTime(const TTimeValue &Delta)
Definition: timer.hxx:82
bool isEmpty() const
Definition: timer.hxx:90
TTimeValue()
Definition: timer.hxx:37
TTimeValue m_aRepeatDelta
holds the time interveal of successive expirations.
Definition: timer.hxx:205
TTimeValue(sal_uInt32 Secs, sal_uInt32 Nano)
Definition: timer.hxx:43
void normalize()
Definition: timer.hxx:73
Interface for the Timer and handling the event.
Definition: timer.hxx:126