1 /*
2  *  Copyright (C) 2012-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 "pvr/windows/GUIWindowPVRBase.h"
12 
13 #include <memory>
14 
15 class CFileItem;
16 
17 namespace PVR
18 {
19   class CGUIWindowPVRTimersBase : public CGUIWindowPVRBase
20   {
21   public:
22     CGUIWindowPVRTimersBase(bool bRadio, int id, const std::string& xmlFile);
23     ~CGUIWindowPVRTimersBase() override;
24 
25     bool OnMessage(CGUIMessage& message) override;
26     bool OnAction(const CAction& action) override;
27     bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
28     void UpdateButtons() override;
29 
30   private:
31     bool ActionShowTimer(const std::shared_ptr<CFileItem>& item);
32 
33     std::shared_ptr<CFileItem> m_currentFileItem;
34   };
35 }
36