2 * Copyright (C) 2016-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "pvr/IPVRComponent.h"
19 class CPVRGUIActionsUtils
: public IPVRComponent
22 CPVRGUIActionsUtils() = default;
23 ~CPVRGUIActionsUtils() override
= default;
26 * @brief Check whether OnInfo supports the given item.
27 * @param item The item.
28 * @return True if supported, false otherwise.
30 bool HasInfoForItem(const CFileItem
& item
) const;
33 * @brief Process info action for the given item.
34 * @param item The item.
35 * @return True on success, false otherwise.
37 bool OnInfo(const CFileItem
& item
);
40 * @brief Load item details (create recording info tag etc.).
41 * @param item The item.
42 * @return Loaded item on success, nullptr otherwise.
44 std::shared_ptr
<CFileItem
> LoadItem(const CFileItem
& item
);
47 CPVRGUIActionsUtils(const CPVRGUIActionsUtils
&) = delete;
48 CPVRGUIActionsUtils
const& operator=(CPVRGUIActionsUtils
const&) = delete;
53 // pretty scope and name
54 using Utils
= CPVRGUIActionsUtils
;