kodi
GUIViewStateVideo.h
1 /*
2  * Copyright (C) 2005-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 
14 {
15 public:
16  explicit CGUIViewStateWindowVideo(const CFileItemList& items) : CGUIViewState(items) {}
17 
18 protected:
19  VECSOURCES& GetSources() override;
20  std::string GetLockType() override;
21  PLAYLIST::Id GetPlaylist() const override;
22  std::string GetExtensions() override;
23  bool AutoPlayNextItem() override;
24 };
25 
27 {
28 public:
29  explicit CGUIViewStateVideoPlaylist(const CFileItemList& items);
30 
31 protected:
32  void SaveViewState() override;
33 };
34 
36 {
37 public:
38  explicit CGUIViewStateWindowVideoNav(const CFileItemList& items);
39  bool AutoPlayNextItem() override;
40 
41 protected:
42  void SaveViewState() override;
43  VECSOURCES& GetSources() override;
44 };
45 
47 {
48 public:
49  explicit CGUIViewStateWindowVideoPlaylist(const CFileItemList& items);
50 
51 protected:
52  void SaveViewState() override;
53  bool HideExtensions() override;
54  bool HideParentDirItems() override;
55  VECSOURCES& GetSources() override;
56  bool AutoPlayNextItem() override { return false; }
57 };
58 
60 {
61 public:
62  explicit CGUIViewStateVideoMovies(const CFileItemList& items);
63 protected:
64  void SaveViewState() override;
65 };
66 
68 {
69 public:
70  explicit CGUIViewStateVideoMusicVideos(const CFileItemList& items);
71 protected:
72  void SaveViewState() override;
73 };
74 
76 {
77 public:
78  explicit CGUIViewStateVideoTVShows(const CFileItemList& items);
79 protected:
80  void SaveViewState() override;
81 };
82 
84 {
85 public:
86  explicit CGUIViewStateVideoEpisodes(const CFileItemList& items);
87 protected:
88  void SaveViewState() override;
89 };
90 
Represents a list of files.
Definition: FileItem.h:702
Definition: GUIViewStateVideo.h:67
Definition: GUIViewStateVideo.h:26
Definition: GUIViewStateVideo.h:59
Definition: GUIViewState.h:25
Definition: GUIViewStateVideo.h:83
Definition: GUIViewStateVideo.h:13
Definition: GUIViewStateVideo.h:75
Definition: GUIViewStateVideo.h:46
Definition: GUIViewStateVideo.h:35