Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
IScreenSaver.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
12
16{
17public:
18 virtual ~IScreenSaver() = default;
19 // note -- the c'tor/d'tor must *not* enable/disable the screen saver
20
22
23
25
31 virtual void enable() = 0;
32
34
38 virtual void disable() = 0;
39
41
44 virtual void activate() = 0;
45
47
51 virtual void deactivate() = 0;
52
54
56
58
61 virtual bool isActive() const = 0;
62
64};
Screen saver interface.
Definition IScreenSaver.h:16
virtual bool isActive() const =0
Test if screen saver on.
virtual void activate()=0
Activate screen saver.
virtual void deactivate()=0
Deactivate screen saver.
virtual void disable()=0
Disable screen saver.
virtual void enable()=0
Enable screen saver.
virtual ~IScreenSaver()=default