kodi
GUIWindowPVRTimersBase.h
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 {
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  void OnPrepareFileItems(CFileItemList& items) override;
28  bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
29  void UpdateButtons() override;
30 
31 private:
32  bool ActionShowTimer(const CFileItem& item);
33 
34  std::shared_ptr<CFileItem> m_currentFileItem;
35 };
36 } // namespace PVR
Definition: GUIWindowPVRBase.h:54
void UpdateButtons() override
Updates the states.
Definition: GUIWindowPVRTimersBase.cpp:92
Definition: ContextMenuManager.h:24
bool Update(const std::string &strDirectory, bool updateFilterPath=true) override
Retrieves the items from the given path and updates the list.
Definition: GUIWindowPVRTimersBase.cpp:69
Represents a list of files.
Definition: FileItem.h:702
Definition: GUIWindowPVRTimersBase.h:19
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Definition: GUIMessage.h:365
void OnPrepareFileItems(CFileItemList &items) override
On prepare file items.
Definition: GUIWindowPVRTimersBase.cpp:54
Represents a file on a share.
Definition: FileItem.h:102