diff options
Diffstat (limited to 'vcl/inc/win/saltimer.h')
-rw-r--r-- | vcl/inc/win/saltimer.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vcl/inc/win/saltimer.h b/vcl/inc/win/saltimer.h index 9107dd1a0b19..f87361e55ed8 100644 --- a/vcl/inc/win/saltimer.h +++ b/vcl/inc/win/saltimer.h @@ -24,10 +24,17 @@ class WinSalTimer : public SalTimer { + // for access to Impl* functions + friend LRESULT CALLBACK SalComWndProc( HWND, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef ); + HANDLE m_nTimerId; ///< Windows timer id sal_uInt32 m_nTimerStartTicks; ///< system ticks at timer start % SAL_MAX_UINT32 bool m_bPollForMessage; ///< Run yield until a message is caught (most likely the 0ms timer) + void ImplStart( sal_uIntPtr nMS ); + void ImplStop(); + void ImplEmitTimerCallback(); + public: WinSalTimer(); virtual ~WinSalTimer() override; @@ -38,14 +45,6 @@ public: inline bool IsValidWPARAM( WPARAM wParam ) const; inline bool PollForMessage() const; - - // The Impl functions are just public to be called from the static - // SalComWndProc on main thread redirect! Otherwise they would be private. - // They must be called from the main application thread only! - - void ImplStart( sal_uIntPtr nMS ); - void ImplStop(); - void ImplEmitTimerCallback(); }; inline bool WinSalTimer::IsValidWPARAM( WPARAM aWPARAM ) const |