2 * Copyright (C) 2005-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 "view/GUIViewState.h"
13 class CGUIViewStateWindowMusic
: public CGUIViewState
16 explicit CGUIViewStateWindowMusic(const CFileItemList
& items
) : CGUIViewState(items
) {}
18 VECSOURCES
& GetSources() override
;
19 PLAYLIST::Id
GetPlaylist() const override
;
20 bool AutoPlayNextItem() override
;
21 std::string
GetLockType() override
;
22 std::string
GetExtensions() override
;
25 class CGUIViewStateMusicSearch
: public CGUIViewStateWindowMusic
28 explicit CGUIViewStateMusicSearch(const CFileItemList
& items
);
31 void SaveViewState() override
;
34 class CGUIViewStateMusicDatabase
: public CGUIViewStateWindowMusic
37 explicit CGUIViewStateMusicDatabase(const CFileItemList
& items
);
40 void SaveViewState() override
;
43 class CGUIViewStateMusicSmartPlaylist
: public CGUIViewStateWindowMusic
46 explicit CGUIViewStateMusicSmartPlaylist(const CFileItemList
& items
);
49 void SaveViewState() override
;
52 class CGUIViewStateMusicPlaylist
: public CGUIViewStateWindowMusic
55 explicit CGUIViewStateMusicPlaylist(const CFileItemList
& items
);
58 void SaveViewState() override
;
61 class CGUIViewStateWindowMusicNav
: public CGUIViewStateWindowMusic
64 explicit CGUIViewStateWindowMusicNav(const CFileItemList
& items
);
67 void SaveViewState() override
;
68 VECSOURCES
& GetSources() override
;
71 void AddOnlineShares();
74 class CGUIViewStateWindowMusicPlaylist
: public CGUIViewStateWindowMusic
77 explicit CGUIViewStateWindowMusicPlaylist(const CFileItemList
& items
);
80 void SaveViewState() override
;
81 PLAYLIST::Id
GetPlaylist() const override
;
82 bool AutoPlayNextItem() override
;
83 bool HideParentDirItems() override
;
84 VECSOURCES
& GetSources() override
;