Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XWindowsPowerManager Class Reference

#include <XWindowsPowerManager.h>

Public Types

enum class  InhibitScreenServices { kScreenSaver , kSessionManager }

Public Member Functions

 XWindowsPowerManager ()=default
 ~XWindowsPowerManager ()
void disableSleep () const
 Prevent the system from sleep.
void enableSleep () const
 Enables automatical sleep.
 XWindowsPowerManager (const XWindowsPowerManager &)=delete
XWindowsPowerManageroperator= (const XWindowsPowerManager &)=delete

Static Public Member Functions

static bool inhibitScreenCall (InhibitScreenServices serviceID, bool state, std::string &error)

Member Enumeration Documentation

◆ InhibitScreenServices

Enumerator
kScreenSaver 
kSessionManager 

Constructor & Destructor Documentation

◆ XWindowsPowerManager() [1/2]

XWindowsPowerManager::XWindowsPowerManager ( )
default

◆ ~XWindowsPowerManager()

XWindowsPowerManager::~XWindowsPowerManager ( )

◆ XWindowsPowerManager() [2/2]

XWindowsPowerManager::XWindowsPowerManager ( const XWindowsPowerManager & )
delete

Member Function Documentation

◆ disableSleep()

void XWindowsPowerManager::disableSleep ( ) const

Prevent the system from sleep.

◆ enableSleep()

void XWindowsPowerManager::enableSleep ( ) const

Enables automatical sleep.

◆ inhibitScreenCall()

bool XWindowsPowerManager::inhibitScreenCall ( InhibitScreenServices serviceID,
bool state,
std::string & error )
static

◆ operator=()

XWindowsPowerManager & XWindowsPowerManager::operator= ( const XWindowsPowerManager & )
delete

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