21 #ifndef INCLUDED_SALHELPER_TIMER_HXX
22 #define INCLUDED_SALHELPER_TIMER_HXX
54 Nanosec = (MilliSecs % 1000) * 1000000L;
146 void SAL_CALL start();
150 void SAL_CALL stop();
154 sal_Bool SAL_CALL isTicking()
const;
158 sal_Bool SAL_CALL isExpired()
const;
162 sal_Bool SAL_CALL expiresBefore(
const Timer* pTimer )
const;
166 void SAL_CALL setAbsoluteTime(
const TTimeValue& Time );
170 void SAL_CALL setRemainingTime(
const TTimeValue& Remaining );
179 void SAL_CALL addTime(
const TTimeValue& Time );
193 virtual void SAL_CALL onShot() = 0;
223 friend class TimerManager;
228 #endif // INCLUDED_SALHELPER_TIMER_HXX
TTimeValue m_aRepeatDelta
holds the time interveal of successive expirations.
Definition: timer.hxx:207
#define SALHELPER_DLLPRIVATE
Definition: salhelperdllapi.h:30
void normalize()
Definition: timer.hxx:75
TTimeValue m_aExpired
holds the time of exparation of this timer.
Definition: timer.hxx:203
sal_uInt32 Seconds
Definition: time.h:43
void addTime(const TTimeValue &Delta)
Definition: timer.hxx:84
unsigned char sal_Bool
Definition: types.h:46
bool operator<(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:98
sal_uInt32 Nanosec
Definition: time.h:44
TTimeValue()
Definition: timer.hxx:37
bool isEmpty() const
Definition: timer.hxx:92
A simple base implementation for reference-counted objects.
Definition: simplereferenceobject.hxx:58
Definition: condition.hxx:29
Helper class for easier manipulation with TimeValue.
Definition: timer.hxx:35
TTimeValue m_aTimeOut
holds (initial) exparation time of this timer.
Definition: timer.hxx:199
bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:118
Timer * m_pNext
Pointer to the next timer (to fire).
Definition: timer.hxx:211
TTimeValue(const TimeValue &rTimeValue)
Definition: timer.hxx:67
bool operator>(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:108
Interface for the Timer and handling the event.
Definition: timer.hxx:128
TTimeValue(const TTimeValue &rTimeValue)
Definition: timer.hxx:59
TTimeValue(sal_uInt32 Secs, sal_uInt32 Nano)
Definition: timer.hxx:43
TTimeValue(sal_uInt32 MilliSecs)
Definition: timer.hxx:51
#define SALHELPER_DLLPUBLIC
Definition: salhelperdllapi.h:28