LibreOffice Module slideshow (master) 1
|
Event, which delays calling passed Event's fire() method the given amount of time. More...
#include <interruptabledelayevent.hxx>
Public Member Functions | |
DelayFacade (EventSharedPtr xEvent, double nTimeout) | |
virtual bool | fire () override |
Execute the event. More... | |
virtual bool | isCharged () const override |
Query whether this event is still charged, i.e. More... | |
virtual double | getActivationTime (double nCurrentTime) const override |
Query the activation time instant this event shall be fired, if it was inserted at instant nCurrentTime into the queue. More... | |
virtual void | dispose () override |
Dispose all object references. More... | |
Public Member Functions inherited from slideshow::internal::Event | |
Event (OUString sDescription) | |
virtual bool | fire ()=0 |
Execute the event. More... | |
virtual bool | isCharged () const =0 |
Query whether this event is still charged, i.e. More... | |
virtual double | getActivationTime (double nCurrentTime) const =0 |
Query the activation time instant this event shall be fired, if it was inserted at instant nCurrentTime into the queue. More... | |
const OUString & | GetDescription () const |
Public Member Functions inherited from slideshow::internal::Disposable | |
virtual | ~Disposable () |
virtual void | dispose ()=0 |
Dispose all object references. More... | |
Private Attributes | |
EventSharedPtr | mpEvent |
double | mnTimeout |
Event, which delays calling passed Event's fire() method the given amount of time.
This is actually a facade around the passed event object, that passes on all calls to that object, and the sole contribution of itself is the delay.
Definition at line 36 of file interruptabledelayevent.hxx.
|
inline |
Definition at line 39 of file interruptabledelayevent.hxx.
|
inlineoverridevirtual |
Dispose all object references.
An implementor of this method must first call dispose() on any of its external references, and release them after that.
Implements slideshow::internal::Disposable.
Definition at line 75 of file interruptabledelayevent.hxx.
References mpEvent.
|
inlineoverridevirtual |
Execute the event.
Implements slideshow::internal::Event.
Definition at line 47 of file interruptabledelayevent.hxx.
References isCharged(), and mpEvent.
|
inlineoverridevirtual |
Query the activation time instant this event shall be fired, if it was inserted at instant nCurrentTime into the queue.
nCurrentTime | The time from which the activation time is to be calculated from. |
Implements slideshow::internal::Event.
Definition at line 68 of file interruptabledelayevent.hxx.
References mnTimeout.
|
inlineoverridevirtual |
Query whether this event is still charged, i.e.
able to fire.
Inactive events are ignored by the normal event containers (EventQueue, UserEventQueue etc.), and no explicit fire() is called upon them.
Implements slideshow::internal::Event.
Definition at line 60 of file interruptabledelayevent.hxx.
References mpEvent.
Referenced by fire().
|
private |
Definition at line 82 of file interruptabledelayevent.hxx.
Referenced by getActivationTime().
|
private |
Definition at line 81 of file interruptabledelayevent.hxx.
Referenced by dispose(), fire(), and isCharged().