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/settings/PVRSettings.h"
13 #include "pvr/windows/GUIWindowPVRBase.h"
14 #include "video/VideoDatabase.h"
15 #include "video/VideoThumbLoader.h"
23 class CGUIWindowPVRRecordingsBase
: public CGUIWindowPVRBase
26 CGUIWindowPVRRecordingsBase(bool bRadio
, int id
, const std::string
& xmlFile
);
27 ~CGUIWindowPVRRecordingsBase() override
;
29 void OnWindowLoaded() override
;
30 bool OnMessage(CGUIMessage
& message
) override
;
31 bool OnAction(const CAction
& action
) override
;
32 void GetContextButtons(int itemNumber
, CContextButtons
& buttons
) override
;
33 bool OnPopupMenu(int iItem
) override
;
34 bool OnContextButton(int itemNumber
, CONTEXT_BUTTON button
) override
;
35 bool Update(const std::string
& strDirectory
, bool updateFilterPath
= true) override
;
36 void UpdateButtons() override
;
39 std::string
GetDirectoryPath() override
;
40 void OnPrepareFileItems(CFileItemList
& items
) override
;
41 bool GetFilteredItems(const std::string
& filter
, CFileItemList
& items
) override
;
43 bool m_bShowDeletedRecordings
{false};
46 bool OnContextButtonDeleteAll(CFileItem
* item
, CONTEXT_BUTTON button
);
48 CVideoThumbLoader m_thumbLoader
;
49 CVideoDatabase m_database
;
50 CPVRSettings m_settings
;
53 class CGUIWindowPVRTVRecordings
: public CGUIWindowPVRRecordingsBase
56 CGUIWindowPVRTVRecordings()
57 : CGUIWindowPVRRecordingsBase(false, WINDOW_TV_RECORDINGS
, "MyPVRRecordings.xml")
60 std::string
GetRootPath() const override
;
63 class CGUIWindowPVRRadioRecordings
: public CGUIWindowPVRRecordingsBase
66 CGUIWindowPVRRadioRecordings()
67 : CGUIWindowPVRRecordingsBase(true, WINDOW_RADIO_RECORDINGS
, "MyPVRRecordings.xml")
70 std::string
GetRootPath() const override
;