summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2015-03-05 14:05:15 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2015-03-06 12:27:12 +0000
commit7e2a0df7e7b4551698d1d7172ef12ad1e0fd8826 (patch)
tree304ba756d0a3eba181fd5e2b8796c52eb6108903 /include/vcl
parentb11dba5be288ca5aaed1403093033708f7091c42 (diff)
Timer: added new saltimer handling
Change-Id: Icdc5abf9dca727a8cc312ddb5861f7a34a38bbe1
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/scheduler.hxx3
-rw-r--r--include/vcl/timer.hxx4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index af17016971ea..30f2e1ab4bc8 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -60,6 +60,7 @@ protected:
friend struct ImplSchedulerData;
virtual void SetDeletionFlags();
virtual bool ReadyForSchedule( bool bTimer ) { return !bTimer; }
+ virtual sal_uLong UpdateMinPeriod( sal_uLong nMinPeriod, sal_uLong nTime );
public:
Scheduler();
@@ -79,7 +80,7 @@ public:
bool IsActive() const { return mbActive; }
- Scheduler& operator=( const Scheduler& Scheduler );
+ Scheduler& operator=( const Scheduler& rScheduler );
static void ImplDeInitScheduler();
/// Process all pending idle tasks ahead of time in priority order.
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index d2db1d4efd9c..a999559d5ff6 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -32,6 +32,7 @@ protected:
void SetDeletionFlags() SAL_OVERRIDE;
bool ReadyForSchedule( bool bTimer ) SAL_OVERRIDE;
+ sal_uLong UpdateMinPeriod( sal_uLong nMinPeriod, sal_uLong nTime ) SAL_OVERRIDE;
public:
Timer();
@@ -44,9 +45,10 @@ public:
void SetTimeoutHdl( const Link& rLink ) { maTimeoutHdl = rLink; }
const Link& GetTimeoutHdl() const { return maTimeoutHdl; }
virtual void Invoke() SAL_OVERRIDE;
- void Timeout() { Invoke(); }
+ void Timeout() { Invoke(); }
Timer& operator=( const Timer& rTimer );
void Start() SAL_OVERRIDE;
+ static void ImplStartTimer( ImplSVData* pSVData, sal_uLong nMS );
};
/// An auto-timer is a multi-shot timer re-emitting itself at