summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/eventqueue.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/inc/eventqueue.hxx')
-rw-r--r--slideshow/source/inc/eventqueue.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/slideshow/source/inc/eventqueue.hxx b/slideshow/source/inc/eventqueue.hxx
index e948b4f2379f..19f3358f1298 100644
--- a/slideshow/source/inc/eventqueue.hxx
+++ b/slideshow/source/inc/eventqueue.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ namespace slideshow
even when they schedule new regular events without delay.
*/
bool addEventWhenQueueIsEmpty (const EventSharedPtr& rpEvent);
-
+
/** Process the event queue.
This method executes all events whose timeout has
@@ -97,7 +97,7 @@ namespace slideshow
bool isEmpty() const;
/** Query timeout for the topmost event in the queue.
-
+
@return Timeout in seconds, until the next event is
ready. The time returned here is relative to the pres
timer (i.e. the timer specified at the EventQueue
@@ -119,19 +119,19 @@ namespace slideshow
@attention do only call from event loop, this calls process_()!
*/
void forceEmpty();
-
+
/** Gets the queue's timer object.
*/
::boost::shared_ptr< ::canvas::tools::ElapsedTime > const &
getTimer() const { return mpTimer; }
-
+
private:
mutable ::osl::Mutex maMutex;
struct EventEntry : public ::std::unary_function<EventEntry, bool>
{
- EventSharedPtr pEvent;
- double nTime;
+ EventSharedPtr pEvent;
+ double nTime;
bool operator<( const EventEntry& ) const; // to leverage priority_queue's default compare
@@ -140,12 +140,12 @@ namespace slideshow
};
typedef ::std::priority_queue< EventEntry > ImplQueueType;
- ImplQueueType maEvents;
+ ImplQueueType maEvents;
typedef ::std::vector<EventEntry> EventEntryVector;
EventEntryVector maNextEvents;
ImplQueueType maNextNextEvents;
void process_( bool bFireAllEvents );
-
+
// perform timing of events via relative time
// measurements. The world time starts, when the
// EventQueue object is created