LibreOffice Module sd (master) 1
|
Detect whether the system is idle and some time consuming operation may be carried out. More...
#include <IdleDetection.hxx>
Static Public Member Functions | |
static IdleState | GetIdleState (const vcl::Window *pWindow) |
Determine whether the system is idle. More... | |
Static Private Member Functions | |
static IdleState | CheckInputPending () |
Check whether there are input events pending. More... | |
static IdleState | CheckSlideShowRunning () |
Check whether a slide show is running full screen or in a window. More... | |
static IdleState | CheckWindowPainting (const vcl::Window &rWindow) |
Detect whether the system is idle and some time consuming operation may be carried out.
This class distinguishes between different states of idle-ness.
Definition at line 61 of file IdleDetection.hxx.
|
staticprivate |
Check whether there are input events pending.
Definition at line 43 of file IdleDetection.cxx.
References Application::AnyInput(), sd::tools::Idle, and sd::tools::SystemEventPending.
Referenced by GetIdleState().
|
staticprivate |
Check whether a slide show is running full screen or in a window.
Definition at line 51 of file IdleDetection.cxx.
References sd::tools::FullScreenShowActive, SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), sd::SlideShow::GetSlideShow(), sd::ViewShellBase::GetViewShellBase(), sd::tools::Idle, sd::tools::WindowShowActive, and xFrame.
Referenced by GetIdleState().
|
staticprivate |
Definition at line 93 of file IdleDetection.cxx.
References sd::tools::Idle, vcl::Window::IsInPaint(), and sd::tools::WindowPainting.
Referenced by GetIdleState().
|
static |
Determine whether the system is idle.
pWindow | When a valid Window pointer is given then it is checked whether the window is currently being painting. |
Definition at line 35 of file IdleDetection.cxx.
References CheckInputPending(), CheckSlideShowRunning(), and CheckWindowPainting().
Referenced by sd::sidebar::IMPL_LINK(), and sd::slidesorter::view::ViewCacheContext::IsIdle().