kodi
GUIWindowPVRChannels.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 "dialogs/GUIDialogContextMenu.h"
12 #include "pvr/PVRChannelNumberInputHandler.h"
13 #include "pvr/windows/GUIWindowPVRBase.h"
14 
15 #include <string>
16 
17 namespace PVR
18 {
20 {
21 public:
22  CGUIWindowPVRChannelsBase(bool bRadio, int id, const std::string& xmlFile);
23  ~CGUIWindowPVRChannelsBase() override;
24 
25  std::string GetRootPath() const override;
26  bool OnMessage(CGUIMessage& message) override;
27  void GetContextButtons(int itemNumber, CContextButtons& buttons) override;
28  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
29  bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
30  void UpdateButtons() override;
31  bool OnAction(const CAction& action) override;
32 
33  // CPVRChannelNumberInputHandler implementation
34  void GetChannelNumbers(std::vector<std::string>& channelNumbers) override;
35  void OnInputDone() override;
36 
37 private:
38  bool OnContextButtonManage(const CFileItemPtr& item, CONTEXT_BUTTON button);
39 
40  void ShowChannelManager();
41  void ShowGroupManager();
42  void UpdateEpg(const CFileItemPtr& item);
43 
44 protected:
45  bool m_bShowHiddenChannels = false;
46 };
47 
49 {
50 public:
52 
53 protected:
54  std::string GetDirectoryPath() override;
55 };
56 
58 {
59 public:
61 
62 protected:
63  std::string GetDirectoryPath() override;
64 };
65 } // namespace PVR
Definition: GUIWindowPVRChannels.h:57
bool Update(const std::string &strDirectory, bool updateFilterPath=true) override
Retrieves the items from the given path and updates the list.
Definition: GUIWindowPVRChannels.cpp:89
Definition: GUIWindowPVRChannels.h:19
Definition: GUIWindowPVRBase.h:54
Definition: ContextMenuManager.h:24
Definition: PVRChannelNumberInputHandler.h:29
Definition: GUIWindowPVRChannels.h:48
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Definition: GUIMessage.h:365
std::string GetRootPath() const override
Definition: GUIWindowPVRChannels.cpp:60
void UpdateButtons() override
Updates the states.
Definition: GUIWindowPVRChannels.cpp:109
Definition: GUIDialogContextMenu.h:93
void OnInputDone() override
This method gets called after the channel number input timer has expired.
Definition: GUIWindowPVRChannels.cpp:383
void GetChannelNumbers(std::vector< std::string > &channelNumbers) override
Get the currently available channel numbers.
Definition: GUIWindowPVRChannels.cpp:401