[videodb] Remove nested transaction when saving state after stopping PVR playback
[xbmc.git] / xbmc / windows / GUIWindowScreensaver.h
blob4dae29028afedae7f6e10bf1f7f0bf87a440e6dd
1 /*
2 * Copyright (C) 2005-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 "guilib/GUIDialog.h"
13 #include <memory>
15 namespace KODI
17 namespace ADDONS
19 class CScreenSaver;
20 } // namespace ADDONS
21 } // namespace KODI
23 class CGUIWindowScreensaver : public CGUIDialog
25 public:
26 CGUIWindowScreensaver();
28 bool OnMessage(CGUIMessage& message) override;
29 bool OnAction(const CAction& action) override
31 // We're just a screen saver, nothing to do here
32 return false;
34 void Render() override;
35 void Process(unsigned int currentTime, CDirtyRegionList& regions) override;
37 protected:
38 void UpdateVisibility() override;
39 void OnInitWindow() override;
41 private:
42 std::unique_ptr<KODI::ADDONS::CScreenSaver> m_addon;
43 bool m_visible{false};