Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
salhelper::SimpleReferenceObject (public) | +--Timer
virtual | abstract | interface | template |
YES | YES | YES | NO |
Methods |
|
Timer( ); |
Constructor. |
Timer( const TTimeValue & Time ); |
Constructor. |
Timer( const TTimeValue & Time, const TTimeValue & RepeatTime ); |
Constructor. |
void start( ); |
Start timer. |
void stop( ); |
Abort timer prematurely. |
sal_Bool isTicking( ) const; |
Returns sal_True if timer is running. |
sal_Bool isExpired( ) const; |
Is the timer expired? |
sal_Bool expiresBefore( const Timer * pTimer ) const; |
Does pTimer expires before us? |
void setAbsoluteTime( const TTimeValue & Time ); |
Set the absolute time when the timer should fire. |
void setRemainingTime( const TTimeValue & Remaining ); |
Set the time to fire to 'now' + Remaining. |
void setRemainingTime( const TTimeValue & Remaining, const TTimeValue & Repeat ); |
Set the time to fire to 'now' + Remaining with repeat interveal * Repeat. |
void addTime( const TTimeValue & Time ); |
Adds Time to the 'fire time'. |
TTimeValue getRemainingTime( ) const; |
Returns the remaining time before timer expiration relative to now. |
Methods |
|
virtual ~Timer( ); |
Destructor. |
virtual void onShot( ) = 0; |
What should be done when the 'timer fires'. |
Data |
|
TTimeValue m_aTimeOut; | holds (initial) exparation time of this timer. |
TTimeValue m_aExpired; | holds the time of exparation of this timer. |
TTimeValue m_aRepeatDelta; | holds the time interveal of successive expirations. |
Timer * m_pNext; | Pointer to the next timer (to fire). |
Methods |
|
Timer( const Timer & rTimer ); |
Copy constructor disabled. |
void operator=( const Timer & rTimer ); |
Assignment operator disabled. |
Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.