| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "guilib/guiinfo/GUIInfoProvider.h" |
| 12 |
|
| 13 |
namespace KODI |
| 14 |
{ |
| 15 |
namespace GUILIB |
| 16 |
{ |
| 17 |
namespace GUIINFO |
| 18 |
{ |
| 19 |
|
| 20 |
class CGUIInfo; |
| 21 |
|
| 22 |
class CMusicGUIInfo : public CGUIInfoProvider |
| 23 |
{ |
| 24 |
public: |
| 25 |
CMusicGUIInfo() = default; |
| 26 |
~CMusicGUIInfo() override = default; |
| 27 |
|
| 28 |
|
| 29 |
bool InitCurrentItem(CFileItem *item) override; |
| 30 |
bool GetLabel(std::string& value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) const override; |
| 31 |
bool GetFallbackLabel(std::string& value, |
| 32 |
const CFileItem* item, |
| 33 |
int contextWindow, |
| 34 |
const CGUIInfo& info, |
| 35 |
std::string* fallback) override; |
| 36 |
bool GetInt(int& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override; |
| 37 |
bool GetBool(bool& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override; |
| 38 |
|
| 39 |
private: |
| 40 |
bool GetPartyModeLabel(std::string& value, const CGUIInfo &info) const; |
| 41 |
bool GetPlaylistInfo(std::string& value, const CGUIInfo &info) const; |
| 42 |
}; |
| 43 |
|
| 44 |
} |
| 45 |
} |
| 46 |
} |