2 * Copyright (C) 2012-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.
11 #include "dialogs/GUIDialogContextMenu.h"
12 #include "pvr/PVRChannelNumberInputHandler.h"
13 #include "pvr/windows/GUIWindowPVRBase.h"
19 class CGUIWindowPVRChannelsBase
: public CGUIWindowPVRBase
, public CPVRChannelNumberInputHandler
22 CGUIWindowPVRChannelsBase(bool bRadio
, int id
, const std::string
& xmlFile
);
23 ~CGUIWindowPVRChannelsBase() override
;
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
;
33 // CPVRChannelNumberInputHandler implementation
34 void GetChannelNumbers(std::vector
<std::string
>& channelNumbers
) override
;
35 void OnInputDone() override
;
38 bool OnContextButtonManage(const CFileItemPtr
& item
, CONTEXT_BUTTON button
);
40 void ShowChannelManager();
41 void ShowGroupManager();
42 void UpdateEpg(const CFileItemPtr
& item
);
45 bool m_bShowHiddenChannels
= false;
48 class CGUIWindowPVRTVChannels
: public CGUIWindowPVRChannelsBase
51 CGUIWindowPVRTVChannels();
54 std::string
GetDirectoryPath() override
;
57 class CGUIWindowPVRRadioChannels
: public CGUIWindowPVRChannelsBase
60 CGUIWindowPVRRadioChannels();
63 std::string
GetDirectoryPath() override
;