Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XWindowsPowerManager.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include <string>
11
13{
14public:
17
21 void disableSleep() const;
22
26 void enableSleep() const;
27
30
36 static bool inhibitScreenCall(InhibitScreenServices serviceID, bool state, std::string &error);
37};
static bool inhibitScreenCall(InhibitScreenServices serviceID, bool state, std::string &error)
Definition XWindowsPowerManager.cpp:53
void enableSleep() const
Enables automatical sleep.
Definition XWindowsPowerManager.cpp:45
XWindowsPowerManager(const XWindowsPowerManager &)=delete
~XWindowsPowerManager()
Definition XWindowsPowerManager.cpp:32
InhibitScreenServices
Definition XWindowsPowerManager.h:32
@ kSessionManager
Definition XWindowsPowerManager.h:34
@ kScreenSaver
Definition XWindowsPowerManager.h:33
XWindowsPowerManager & operator=(const XWindowsPowerManager &)=delete
XWindowsPowerManager()=default
void disableSleep() const
Prevent the system from sleep.
Definition XWindowsPowerManager.cpp:37