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 13 class CGUIWindowVideoPlaylist : public CGUIWindowVideoBase 14 { 15 public: 16 CGUIWindowVideoPlaylist(void); 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 }; 43