| 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 "ThumbLoader.h" |
| 12 |
#include "dialogs/GUIDialogProgress.h" |
| 13 |
#include "windows/GUIMediaWindow.h" |
| 14 |
|
| 15 |
class CGUIWindowPrograms : |
| 16 |
public CGUIMediaWindow, public IBackgroundLoaderObserver |
| 17 |
{ |
| 18 |
public: |
| 19 |
CGUIWindowPrograms(void); |
| 20 |
~CGUIWindowPrograms(void) override; |
| 21 |
bool OnMessage(CGUIMessage& message) override; |
| 22 |
virtual void OnItemInfo(int iItem); |
| 23 |
protected: |
| 24 |
void OnItemLoaded(CFileItem* pItem) override {}; |
| 25 |
bool Update(const std::string& strDirectory, bool updateFilterPath = true) override; |
| 26 |
bool OnPlayMedia(int iItem, const std::string& = "") override; |
| 27 |
void GetContextButtons(int itemNumber, CContextButtons &buttons) override; |
| 28 |
bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override; |
| 29 |
bool OnAddMediaSource() override; |
| 30 |
std::string GetStartFolder(const std::string &dir) override; |
| 31 |
|
| 32 |
CGUIDialogProgress* m_dlgProgress; |
| 33 |
|
| 34 |
CProgramThumbLoader m_thumbLoader; |
| 35 |
}; |