kodi
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  bool OnSelect(int iItem) override;
24 
25 protected:
26  bool OnPlayMedia(int iItem, const std::string &player = "") override;
27  void UpdateButtons() override;
28  void MarkPlaying();
29 
30  void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
31  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
32 
33  void OnMove(int iItem, int iAction);
34 
35  void ClearPlayList();
36  void RemovePlayListItem(int iItem);
37  bool MoveCurrentPlayListItem(int iItem, int iAction, bool bUpdate = true);
38  void MoveItem(int iStart, int iDest);
39 
40  void SavePlayList();
41 
42  int m_movingFrom;
43  VECSOURCES m_shares;
44 };
Represents a list of files.
Definition: FileItem.h:702
void SavePlayList()
Save current playlist to playlist folder.
Definition: GUIWindowVideoPlaylist.cpp:469
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
bool OnPlayMedia(int iItem, const std::string &player="") override
On media play.
Definition: GUIWindowVideoPlaylist.cpp:420
void OnPrepareFileItems(CFileItemList &items) override
On prepare file items.
Definition: GUIWindowVideoPlaylist.cpp:61
Definition: GUIWindowVideoBase.h:23
Definition: GUIMessage.h:365
Definition: GUIWindowVideoPlaylist.h:13
Definition: GUIDialogContextMenu.h:93
void UpdateButtons() override
Updates the states.
Definition: GUIWindowVideoPlaylist.cpp:320