LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SessionManagerInhibitor Class Reference

#include <sessioninhibitor.hxx>

Public Member Functions

void inhibit (bool bInhibit, std::u16string_view sReason, ApplicationInhibitFlags eType, unsigned int window_system_id, std::optional< Display * > pDisplay, const char *application_id=nullptr)
 

Private Member Functions

void inhibitFDOSS (bool bInhibit, const char *appname, const char *reason)
 
void inhibitFDOPM (bool bInhibit, const char *appname, const char *reason)
 
void inhibitGSM (bool bInhibit, const char *appname, const char *reason, ApplicationInhibitFlags eType, unsigned int window_system_id)
 
void inhibitMSM (bool bInhibit, const char *appname, const char *reason, ApplicationInhibitFlags eType, unsigned int window_system_id)
 
void inhibitXScreenSaver (bool bInhibit, Display *pDisplay)
 
void inhibitDPMS (bool bInhibit, Display *pDisplay)
 

Static Private Member Functions

static void inhibitXAutoLock (bool bInhibit, Display *pDisplay)
 

Private Attributes

std::optional< unsigned intmnFDOSSCookie
 
std::optional< unsigned intmnFDOPMCookie
 
std::optional< unsigned intmnGSMCookie
 
std::optional< unsigned intmnMSMCookie
 
std::optional< intmnXScreenSaverTimeout
 
BOOL mbDPMSWasEnabled
 
CARD16 mnDPMSStandbyTimeout
 
CARD16 mnDPMSSuspendTimeout
 
CARD16 mnDPMSOffTimeout
 

Detailed Description

Definition at line 28 of file sessioninhibitor.hxx.

Member Function Documentation

◆ inhibit()

void SessionManagerInhibitor::inhibit ( bool  bInhibit,
std::u16string_view  sReason,
ApplicationInhibitFlags  eType,
unsigned int  window_system_id,
std::optional< Display * >  pDisplay,
const char *  application_id = nullptr 
)

◆ inhibitDPMS()

void SessionManagerInhibitor::inhibitDPMS ( bool  bInhibit,
Display pDisplay 
)
private

◆ inhibitFDOPM()

void SessionManagerInhibitor::inhibitFDOPM ( bool  bInhibit,
const char *  appname,
const char *  reason 
)
private

◆ inhibitFDOSS()

void SessionManagerInhibitor::inhibitFDOSS ( bool  bInhibit,
const char *  appname,
const char *  reason 
)
private

◆ inhibitGSM()

void SessionManagerInhibitor::inhibitGSM ( bool  bInhibit,
const char *  appname,
const char *  reason,
ApplicationInhibitFlags  eType,
unsigned int  window_system_id 
)
private

◆ inhibitMSM()

void SessionManagerInhibitor::inhibitMSM ( bool  bInhibit,
const char *  appname,
const char *  reason,
ApplicationInhibitFlags  eType,
unsigned int  window_system_id 
)
private

◆ inhibitXAutoLock()

static void SessionManagerInhibitor::inhibitXAutoLock ( bool  bInhibit,
Display pDisplay 
)
staticprivate

◆ inhibitXScreenSaver()

void SessionManagerInhibitor::inhibitXScreenSaver ( bool  bInhibit,
Display pDisplay 
)
private

Member Data Documentation

◆ mbDPMSWasEnabled

BOOL SessionManagerInhibitor::mbDPMSWasEnabled
private

Definition at line 47 of file sessioninhibitor.hxx.

◆ mnDPMSOffTimeout

CARD16 SessionManagerInhibitor::mnDPMSOffTimeout
private

Definition at line 50 of file sessioninhibitor.hxx.

◆ mnDPMSStandbyTimeout

CARD16 SessionManagerInhibitor::mnDPMSStandbyTimeout
private

Definition at line 48 of file sessioninhibitor.hxx.

◆ mnDPMSSuspendTimeout

CARD16 SessionManagerInhibitor::mnDPMSSuspendTimeout
private

Definition at line 49 of file sessioninhibitor.hxx.

◆ mnFDOPMCookie

std::optional<unsigned int> SessionManagerInhibitor::mnFDOPMCookie
private

Definition at line 40 of file sessioninhibitor.hxx.

◆ mnFDOSSCookie

std::optional<unsigned int> SessionManagerInhibitor::mnFDOSSCookie
private

Definition at line 39 of file sessioninhibitor.hxx.

◆ mnGSMCookie

std::optional<unsigned int> SessionManagerInhibitor::mnGSMCookie
private

Definition at line 41 of file sessioninhibitor.hxx.

◆ mnMSMCookie

std::optional<unsigned int> SessionManagerInhibitor::mnMSMCookie
private

Definition at line 42 of file sessioninhibitor.hxx.

◆ mnXScreenSaverTimeout

std::optional<int> SessionManagerInhibitor::mnXScreenSaverTimeout
private

Definition at line 44 of file sessioninhibitor.hxx.


The documentation for this class was generated from the following file: