deskflow/src/lib/platform/XWindowsPowerManager.h

29 lines
660 B
C
Raw Normal View History

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
class XWindowsPowerManager
{
public:
XWindowsPowerManager() = default;
~XWindowsPowerManager();
2021-07-23 15:50:09 +00:00
/**
* @brief Prevent the system from sleep
*/
void disableSleep() const;
2021-07-23 15:50:09 +00:00
/**
* @brief Enables automatical sleep
*/
void enableSleep() const;
2021-07-23 16:08:26 +00:00
XWindowsPowerManager(const XWindowsPowerManager &) = delete;
XWindowsPowerManager &operator=(const XWindowsPowerManager &) = delete;
};