diff options
Diffstat (limited to 'slideshow/source/engine/wakeupevent.cxx')
-rw-r--r-- | slideshow/source/engine/wakeupevent.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/slideshow/source/engine/wakeupevent.cxx b/slideshow/source/engine/wakeupevent.cxx index 4cf70774f23f..9cab96a302f2 100644 --- a/slideshow/source/engine/wakeupevent.cxx +++ b/slideshow/source/engine/wakeupevent.cxx @@ -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 @@ -52,7 +52,7 @@ namespace slideshow mrActivityQueue( rActivityQueue ) { } - + void WakeupEvent::dispose() { mpActivity.reset(); @@ -62,25 +62,25 @@ namespace slideshow { if( !mpActivity ) return false; - + return mrActivityQueue.addActivity( mpActivity ); } - + bool WakeupEvent::isCharged() const { // this event won't expire, we fire everytime we're // re-inserted into the event queue. return true; } - + double WakeupEvent::getActivationTime( double nCurrentTime ) const { const double nElapsedTime( maTimer.getElapsedTime() ); - + return ::std::max( nCurrentTime, nCurrentTime - nElapsedTime + mnNextTime ); - } - + } + void WakeupEvent::start() { // start timer @@ -91,7 +91,7 @@ namespace slideshow { mnNextTime = rNextTime; } - + void WakeupEvent::setActivity( const ActivitySharedPtr& rActivity ) { mpActivity = rActivity; |