summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/delayevent.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/inc/delayevent.hxx')
-rw-r--r--slideshow/source/inc/delayevent.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/slideshow/source/inc/delayevent.hxx b/slideshow/source/inc/delayevent.hxx
index 08299df52a33..ed934bfcd102 100644
--- a/slideshow/source/inc/delayevent.hxx
+++ b/slideshow/source/inc/delayevent.hxx
@@ -1,7 +1,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
@@ -42,7 +42,7 @@ class Delay : public Event, private ::boost::noncopyable
{
public:
typedef ::boost::function0<void> FunctorT;
-
+
template <typename FuncT>
Delay( FuncT const& func,
double nTimeout
@@ -53,7 +53,7 @@ public:
) :
#endif
mnTimeout(nTimeout), maFunc(func), mbWasFired(false) {}
-
+
Delay( const boost::function0<void>& func,
double nTimeout
#if OSL_DEBUG_LEVEL > 1
@@ -65,16 +65,16 @@ public:
mnTimeout(nTimeout),
maFunc(func),
mbWasFired(false) {}
-
+
// Event:
virtual bool fire();
virtual bool isCharged() const;
virtual double getActivationTime( double nCurrentTime ) const;
// Disposable:
virtual void dispose();
-
+
private:
- double const mnTimeout;
+ double const mnTimeout;
FunctorT maFunc;
bool mbWasFired;
};
@@ -82,13 +82,13 @@ private:
#if OSL_DEBUG_LEVEL <= 1
/** Generate delay event
-
+
@param func
Functor to call when the event fires.
-
+
@param nTimeout
Timeout in seconds, to wait until functor is called.
-
+
@return generated delay event
*/
template <typename FuncT>
@@ -98,10 +98,10 @@ inline EventSharedPtr makeDelay_( FuncT const& func, double nTimeout )
}
/** Generate immediate event
-
+
@param func
Functor to call when the event fires.
-
+
@return generated immediate event.
*/
template <typename FuncT>
@@ -126,7 +126,7 @@ public:
: Delay(func, nTimeout, rsDescription),
FROM_FUNCTION(from_function),
FROM_FILE(from_file), FROM_LINE(from_line) {}
-
+
char const* const FROM_FUNCTION;
char const* const FROM_FILE;
int const FROM_LINE;