kodi
GUIViewStatePVR.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 "view/GUIViewState.h"
12 
13 class CFileItemList;
14 
15 namespace PVR
16 {
18 {
19 public:
20  CGUIViewStatePVR(const int windowId, const CFileItemList& items) : CGUIViewState(items)
21  {
22  m_windowId = windowId;
23  }
24 
25 protected:
26  bool HideParentDirItems() override { return true; }
27 
28  int m_windowId;
29 };
30 
32 {
33 public:
34  CGUIViewStateWindowPVRChannels(const int windowId, const CFileItemList& items);
35 
36 protected:
37  void SaveViewState() override;
38 };
39 
41 {
42 public:
43  CGUIViewStateWindowPVRRecordings(const int windowId, const CFileItemList& items);
44 
45 protected:
46  void SaveViewState() override;
47  bool HideParentDirItems() override;
48 };
49 
51 {
52 public:
53  CGUIViewStateWindowPVRGuide(const int windowId, const CFileItemList& items);
54 
55 protected:
56  void SaveViewState() override;
57 };
58 
60 {
61 public:
62  CGUIViewStateWindowPVRTimers(const int windowId, const CFileItemList& items);
63 
64 protected:
65  void SaveViewState() override;
66  bool HideParentDirItems() override;
67 };
68 
70 {
71 public:
72  CGUIViewStateWindowPVRSearch(const int windowId, const CFileItemList& items);
73 
74 protected:
75  void SaveViewState() override;
76  bool HideParentDirItems() override;
77 };
78 } // namespace PVR
Definition: GUIViewStatePVR.h:31
Definition: GUIViewStatePVR.h:17
Definition: GUIViewStatePVR.h:40
Definition: GUIViewStatePVR.h:50
Definition: ContextMenuManager.h:24
Represents a list of files.
Definition: FileItem.h:702
Definition: GUIViewStatePVR.h:59
Definition: GUIViewState.h:25
Definition: GUIViewStatePVR.h:69