| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "pvr/IPVRComponent.h" |
| 12 |
|
| 13 |
#include <memory> |
| 14 |
|
| 15 |
class CFileItem; |
| 16 |
|
| 17 |
namespace PVR |
| 18 |
{ |
| 19 |
class CPVRGUIActionsUtils : public IPVRComponent |
| 20 |
{ |
| 21 |
public: |
| 22 |
CPVRGUIActionsUtils() = default; |
| 23 |
~CPVRGUIActionsUtils() override = default; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
bool HasInfoForItem(const CFileItem& item) const; |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
bool OnInfo(const CFileItem& item); |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
std::shared_ptr<CFileItem> LoadItem(const CFileItem& item); |
| 45 |
|
| 46 |
private: |
| 47 |
CPVRGUIActionsUtils(const CPVRGUIActionsUtils&) = delete; |
| 48 |
CPVRGUIActionsUtils const& operator=(CPVRGUIActionsUtils const&) = delete; |
| 49 |
}; |
| 50 |
|
| 51 |
namespace GUI |
| 52 |
{ |
| 53 |
|
| 54 |
using Utils = CPVRGUIActionsUtils; |
| 55 |
} |
| 56 |
|
| 57 |
} |