kodi
PVRGUIActionsUtils.h
1 /*
2  * Copyright (C) 2016-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 "pvr/IPVRComponent.h"
12 
13 #include <memory>
14 
15 class CFileItem;
16 
17 namespace PVR
18 {
20 {
21 public:
22  CPVRGUIActionsUtils() = default;
23  ~CPVRGUIActionsUtils() override = default;
24 
30  bool HasInfoForItem(const CFileItem& item) const;
31 
37  bool OnInfo(const CFileItem& item);
38 
44  std::shared_ptr<CFileItem> LoadItem(const CFileItem& item);
45 
46 private:
48  CPVRGUIActionsUtils const& operator=(CPVRGUIActionsUtils const&) = delete;
49 };
50 
51 namespace GUI
52 {
53 // pretty scope and name
54 using Utils = CPVRGUIActionsUtils;
55 } // namespace GUI
56 
57 } // namespace PVR
bool OnInfo(const CFileItem &item)
Process info action for the given item.
Definition: PVRGUIActionsUtils.cpp:29
Definition: ContextMenuManager.h:24
Definition: PVRGUIActionsUtils.h:19
bool HasInfoForItem(const CFileItem &item) const
Check whether OnInfo supports the given item.
Definition: PVRGUIActionsUtils.cpp:23
Definition: IPVRComponent.h:13
std::shared_ptr< CFileItem > LoadItem(const CFileItem &item)
Load item details (create recording info tag etc.).
Definition: PVRGUIActionsUtils.cpp:89
Represents a file on a share.
Definition: FileItem.h:102