Debian Codegraph @

xbmc/music/windows/GUIWindowMusicNav.h

raw
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 #include "utils/Stopwatch.h"
13
14 class CFileItemList;
15
16 class CGUIWindowMusicNav : public CGUIWindowMusicBase
17 {
18 public:
19
20 CGUIWindowMusicNav(void);
21 ~CGUIWindowMusicNav(void) override;
22
23 bool OnMessage(CGUIMessage& message) override;
24 bool OnAction(const CAction& action) override;
25 void FrameMove() override;
26
27 protected:
28 void OnItemLoaded(CFileItem* pItem) override {};
29 // override base class methods
30 bool Update(const std::string &strDirectory, bool updateFilterPath = true) override;
31 bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override;
32 void UpdateButtons() override;
33 void PlayItem(int iItem) override;
34 void OnWindowLoaded() override;
35 void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
36 bool OnPopupMenu(int iItem) override;
37 bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
38 bool OnClick(int iItem, const std::string &player = "") override;
39 std::string GetStartFolder(const std::string &url) override;
40
41 bool GetSongsFromPlayList(const std::string& strPlayList, CFileItemList &items);
42 bool ManageInfoProvider(const CFileItemPtr& item);
43
44 VECSOURCES m_shares;
45
46 // searching
47 void OnSearchUpdate();
48 void AddSearchFolder();
49 CStopWatch m_searchTimer; ///< Timer to delay a search while more characters are entered
50 bool m_searchWithEdit; ///< Whether the skin supports the new edit control searching
51 };