Debian Codegraph @

xbmc/windowing/linux/OSScreenSaverFreedesktop.h

raw
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "../OSScreenSaver.h"
12
13 #include <cstdint>
14
15 namespace KODI
16 {
17 namespace WINDOWING
18 {
19 namespace LINUX
20 {
21
22 // FIXME This is not really linux-specific, BSD could also have this. Better directory name?
23
24 class COSScreenSaverFreedesktop : public IOSScreenSaver
25 {
26 public:
27 COSScreenSaverFreedesktop() = default;
28
29 static bool IsAvailable();
30 void Inhibit() override;
31 void Uninhibit() override;
32
33 private:
34 bool m_inhibited{false};
35 std::uint32_t m_cookie;
36 };
37
38 }
39 }
40 }