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  bool OnMessage(CGUIMessage& message) override;
20  bool OnAction(const CAction &action) override;
21  bool OnBack(int actionID) override;
22 
23 protected:
24  bool OnPlayMedia(int iItem, const std::string &player = "") override;
25  void UpdateButtons() override;
26  void MarkPlaying();
27 
28  void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
29  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
30 
31  void OnMove(int iItem, int iAction);
32 
33  void ClearPlayList();
34  void RemovePlayListItem(int iItem);
35  bool MoveCurrentPlayListItem(int iItem, int iAction, bool bUpdate = true);
36  void MoveItem(int iStart, int iDest);
37 
38  void SavePlayList();
39 
40  int m_movingFrom;
41  VECSOURCES m_shares;
42 };
void SavePlayList()
Save current playlist to playlist folder.
Definition: GUIWindowVideoPlaylist.cpp:395
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:343
Definition: GUIWindowVideoBase.h:28
Definition: GUIMessage.h:365
Definition: GUIWindowVideoPlaylist.h:13
Definition: GUIDialogContextMenu.h:95
void UpdateButtons() override
Updates the states.
Definition: GUIWindowVideoPlaylist.cpp:284