xbmc
GUIWindowVideoPlaylist.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 "GUIWindowVideoBase.h"
12 
14 {
15 public:
17  ~CGUIWindowVideoPlaylist(void) override;
18 
19  void OnPrepareFileItems(CFileItemList& items) override;
20  bool OnMessage(CGUIMessage& message) override;
21  bool OnAction(const CAction &action) override;
22  bool OnBack(int actionID) override;
23 
24 protected:
25  bool OnPlayMedia(int iItem, const std::string &player = "") override;
26  void UpdateButtons() override;
27  void MarkPlaying();
28 
29  void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
30  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
31 
32  void OnMove(int iItem, int iAction);
33 
34  void ClearPlayList();
35  void RemovePlayListItem(int iItem);
36  bool MoveCurrentPlayListItem(int iItem, int iAction, bool bUpdate = true);
37  void MoveItem(int iStart, int iDest);
38 
39  void SavePlayList();
40 
41  int m_movingFrom;
42  VECSOURCES m_shares;
43 };
Represents a list of files.
Definition: FileItem.h:721
void SavePlayList()
Save current playlist to playlist folder.
Definition: GUIWindowVideoPlaylist.cpp:416
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
bool OnPlayMedia(int iItem, const std::string &player="") override
On media play.
Definition: GUIWindowVideoPlaylist.cpp:362
void OnPrepareFileItems(CFileItemList &items) override
On prepare file items.
Definition: GUIWindowVideoPlaylist.cpp:56
Definition: GUIWindowVideoBase.h:23
Definition: GUIMessage.h:365
Definition: GUIWindowVideoPlaylist.h:13
Definition: GUIDialogContextMenu.h:92
void UpdateButtons() override
Updates the states.
Definition: GUIWindowVideoPlaylist.cpp:303