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
Timer * m_pNext
Pointer to the next timer (to fire).
Definition: timer.hxx:211
sal_uInt32 Seconds
Definition: time.h:43
TTimeValue(const TimeValue &rTimeValue)
Definition: timer.hxx:67
TTimeValue(const TTimeValue &rTimeValue)
Definition: timer.hxx:59
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:404
sal_uInt32 Nanosec
Definition: time.h:44
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:98
TTimeValue(sal_uInt32 MilliSecs)
Definition: timer.hxx:51
bool operator>(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:108
TTimeValue m_aExpired
holds the time of exparation of this timer.
Definition: timer.hxx:203
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:199
bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:118
void addTime(const TTimeValue &Delta)
Definition: timer.hxx:84
bool isEmpty() const
Definition: timer.hxx:92
TTimeValue()
Definition: timer.hxx:37
TTimeValue m_aRepeatDelta
holds the time interveal of successive expirations.
Definition: timer.hxx:207
TTimeValue(sal_uInt32 Secs, sal_uInt32 Nano)
Definition: timer.hxx:43
void normalize()
Definition: timer.hxx:75
Interface for the Timer and handling the event.
Definition: timer.hxx:128