LibreOffice Module slideshow (master) 1
|
Public Member Functions | |
WakeupEvent (std::shared_ptr< ::canvas::tools::ElapsedTime > const &pTimeBase, ActivitySharedPtr const &rActivity, ActivitiesQueue &rActivityQueue) | |
WakeupEvent (const WakeupEvent &)=delete | |
WakeupEvent & | operator= (const WakeupEvent &)=delete |
virtual void | dispose () override |
Dispose all object references. More... | |
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... | |
void | start () |
Start the internal timer. More... | |
void | setNextTimeout (double nextTime) |
Set the next timeout this object should generate. 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 | |
::canvas::tools::ElapsedTime | maTimer |
double | mnNextTime |
std::weak_ptr< Activity > | mpActivity |
ActivitiesQueue & | mrActivityQueue |
Definition at line 53 of file rehearsetimingsactivity.cxx.
|
inline |
Definition at line 56 of file rehearsetimingsactivity.cxx.
|
delete |
|
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 69 of file rehearsetimingsactivity.cxx.
|
inlineoverridevirtual |
Execute the event.
Implements slideshow::internal::Event.
Definition at line 70 of file rehearsetimingsactivity.cxx.
References slideshow::internal::ActivitiesQueue::addActivity(), mpActivity, and mrActivityQueue.
|
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 80 of file rehearsetimingsactivity.cxx.
References canvas::tools::ElapsedTime::getElapsedTime(), maTimer, and mnNextTime.
|
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 79 of file rehearsetimingsactivity.cxx.
|
delete |
|
inline |
Set the next timeout this object should generate.
nextTime | Absolute time, measured from the last start() call, when this event should wakeup the Activity again. If your time is relative, simply call start() just before every setNextTimeout() call. |
Definition at line 99 of file rehearsetimingsactivity.cxx.
References mnNextTime.
|
inline |
Start the internal timer.
Definition at line 89 of file rehearsetimingsactivity.cxx.
References maTimer, and canvas::tools::ElapsedTime::reset().
|
private |
Definition at line 102 of file rehearsetimingsactivity.cxx.
Referenced by getActivationTime(), and start().
|
private |
Definition at line 103 of file rehearsetimingsactivity.cxx.
Referenced by getActivationTime(), and setNextTimeout().
|
private |
Definition at line 104 of file rehearsetimingsactivity.cxx.
Referenced by fire().
|
private |
Definition at line 105 of file rehearsetimingsactivity.cxx.
Referenced by fire().