kodi
GUIWindowMusicPlaylist.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 "GUIWindowMusicBase.h"
12 
14 {
15 public:
17  ~CGUIWindowMusicPlayList(void) override;
18 
19  bool OnMessage(CGUIMessage& message) override;
20  bool OnAction(const CAction &action) override;
21  bool OnBack(int actionID) override;
22 
23  void RemovePlayListItem(int iItem);
24  void MoveItem(int iStart, int iDest);
25 
26 protected:
27  bool GoParentFolder() override { return false; }
28  void UpdateButtons() override;
29  void OnItemLoaded(CFileItem* pItem) override;
30  bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
31  void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
32  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
33  void OnMove(int iItem, int iAction);
34  bool OnPlayMedia(int iItem, const std::string &player = "") override;
35 
36  void SavePlayList();
37  void ClearPlayList();
38  void MarkPlaying();
39 
40  bool MoveCurrentPlayListItem(int iItem, int iAction, bool bUpdate = true);
41 
42  int m_movingFrom;
43  VECSOURCES m_shares;
44 };
bool OnPlayMedia(int iItem, const std::string &player="") override
On media play.
Definition: GUIWindowMusicPlaylist.cpp:456
bool Update(const std::string &strDirectory, bool updateFilterPath=true) override
Retrieves the items from the given path and updates the list.
Definition: GUIWindowMusicPlaylist.cpp:520
The base class for music windows.
Definition: GUIWindowMusicBase.h:37
void GetContextButtons(int itemNumber, CContextButtons &buttons) override
Will be called when an popup context menu has been asked for.
Definition: GUIWindowMusicPlaylist.cpp:536
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Definition: GUIMessage.h:365
bool OnMessage(CGUIMessage &message) override
Handle messages on window.
Definition: GUIWindowMusicPlaylist.cpp:63
Definition: GUIWindowMusicPlaylist.h:13
void UpdateButtons() override
Overwrite to update your gui buttons (visible, enable,...)
Definition: GUIWindowMusicPlaylist.cpp:391
bool GoParentFolder() override
Go one directory up on list items.
Definition: GUIWindowMusicPlaylist.h:27
Definition: GUIDialogContextMenu.h:93
Represents a file on a share.
Definition: FileItem.h:102