summaryrefslogtreecommitdiff
path: root/include/vcl/timer.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-01-19 12:18:52 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-01-20 10:32:04 +0000
commit7cf3ae68afb9d3f2f126e544de85f38a18ad3de0 (patch)
tree48d7e422e21f074095a6a17b1dd3e796ba45444e /include/vcl/timer.hxx
parent8f29ee6c293a6d72b3cf0b6b735c90ba91fc5607 (diff)
Apply stricter member access control for Tasks
This disallows changing mbAuto and changing values of ImplSchedulerData outside of Scheduler / Task functions. Change-Id: Ia624999bd63190c072eb66427aec38e7ac8cfa1b Reviewed-on: https://gerrit.libreoffice.org/33317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/vcl/timer.hxx')
-rw-r--r--include/vcl/timer.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index 07fb9a873259..e7d539fdabf4 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -25,18 +25,23 @@
class VCL_DLLPUBLIC Timer : public Task
{
-protected:
Link<Timer *, void> maInvokeHandler; ///< Callback Link
sal_uInt64 mnTimeout;
- bool mbAuto;
+ const bool mbAuto;
+protected:
virtual void SetDeletionFlags() override;
virtual bool ReadyForSchedule( bool bIdle, sal_uInt64 nTimeNow ) const override;
virtual bool IsIdle() const override;
virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow ) const override;
+ Timer( bool bAuto, const sal_Char *pDebugName = nullptr );
+
public:
Timer( const sal_Char *pDebugName = nullptr );
+ Timer( const Timer& rTimer );
+ virtual ~Timer() override;
+ Timer& operator=( const Timer& rTimer );
/**
* Calls the maInvokeHandler with the parameter this.