diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-01-04 15:43:22 +0100 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-01-04 15:43:22 +0100 |
commit | b71823a291b10fe67cd96b81bce3fb0d91dcb893 (patch) | |
tree | 756017bd26f549770d70b47488b4fe11aaff1504 /slideshow/source/inc/event.hxx | |
parent | dada72080460ab3a1bf4228a38454339b1d5f204 (diff) | |
parent | eb86211c1db0bb492669e7ac8302b89254ed4793 (diff) |
merge to m68
Diffstat (limited to 'slideshow/source/inc/event.hxx')
-rw-r--r-- | slideshow/source/inc/event.hxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/slideshow/source/inc/event.hxx b/slideshow/source/inc/event.hxx index 80e825cc8049..6e41e5c30123 100644 --- a/slideshow/source/inc/event.hxx +++ b/slideshow/source/inc/event.hxx @@ -31,7 +31,8 @@ #define INCLUDED_SLIDESHOW_EVENT_HXX #include "disposable.hxx" - +#include "debug.hxx" +#include <rtl/ustring.hxx> #include <boost/shared_ptr.hpp> #include <vector> @@ -43,6 +44,10 @@ namespace internal { class Event : public Disposable { public: +#if OSL_DEBUG_LEVEL > 1 + Event (const ::rtl::OUString& rsDescription) : msDescription(rsDescription) {}; +#endif + /** Execute the event. @return true, if event was successfully executed. @@ -72,6 +77,13 @@ public: event is to be fired. */ virtual double getActivationTime( double nCurrentTime ) const = 0; + +#if OSL_DEBUG_LEVEL > 1 + ::rtl::OUString GetDescription (void) const { return msDescription; } + +private: + const ::rtl::OUString msDescription; +#endif }; typedef ::boost::shared_ptr< Event > EventSharedPtr; |