Merge pull request #26312 from garbear/update-controllers
[xbmc.git] / xbmc / windowing / X11 / OSScreenSaverX11.h
blob60c9b45b222c18c2fa20596abd86fa445d631f5c
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"
12 #include "threads/Timer.h"
14 #include <X11/Xlib.h>
16 class COSScreenSaverX11 : public KODI::WINDOWING::IOSScreenSaver
18 public:
19 explicit COSScreenSaverX11(Display* dpy);
20 void Inhibit() override;
21 void Uninhibit() override;
23 private:
24 void ResetScreenSaver();
26 Display* m_dpy;
27 CTimer m_screensaverResetTimer;