[Test] Added tests for CUtil::SplitParams
[xbmc.git] / xbmc / windowing / linux / OSScreenSaverFreedesktop.h
blob041e8abd4b528f52618c4428697bc3bf8465548e
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "../OSScreenSaver.h"
13 #include <cstdint>
15 namespace KODI
17 namespace WINDOWING
19 namespace LINUX
22 // FIXME This is not really linux-specific, BSD could also have this. Better directory name?
24 class COSScreenSaverFreedesktop : public IOSScreenSaver
26 public:
27 COSScreenSaverFreedesktop() = default;
29 static bool IsAvailable();
30 void Inhibit() override;
31 void Uninhibit() override;
33 private:
34 bool m_inhibited{false};
35 std::uint32_t m_cookie;