namespace com::sun::star::uno { class XComponentContext; }
namespace sdext::presenter {
/** The timer allows tasks to be scheduled for execution at a specified time inthefuture.
*/ class PresenterTimer
{ public: /** A task is called with the current time.
*/ typedef ::std::function<void (const TimeValue&)> Task;
staticconst sal_Int32 NotAValidTaskId = 0;
/** Schedule a task to be executed repeatedly. The task is executed the firsttimeafternFirstnano-seconds(1000000000correspondstoone second).Afterthattaskisexecutedinintervalsthatare nIntervalnslonguntilCancelTaskiscalled.
*/ static sal_Int32 ScheduleRepeatedTask ( const css::uno::Reference<css::uno::XComponentContext>& xContext, const Task& rTask, const sal_Int64 nFirst, const sal_Int64 nInterval);
/** A timer that calls its listeners, typically clocks, every second to updatetheircurrenttimevalue.
*/ class PresenterClockTimer
: protected ::cppu::BaseMutex, public PresenterClockTimerInterfaceBase
{ public: class Listener { public: virtualvoid TimeHasChanged (const oslDateTime& rCurrentTime) = 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.