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"
12 #include "pvr/settings/PVRSettings.h"
18 enum class ParentalCheckResult
27 class CPVRGUIActionsParentalControl
: public IPVRComponent
30 CPVRGUIActionsParentalControl();
31 ~CPVRGUIActionsParentalControl() override
= default;
34 * @brief Check if channel is parental locked. Ask for PIN if necessary.
35 * @param channel The channel to do the check for.
36 * @return the result of the check (success, failed, or canceled by user).
38 ParentalCheckResult
CheckParentalLock(const std::shared_ptr
<const CPVRChannel
>& channel
) const;
41 * @brief Open Numeric dialog to check for parental PIN.
42 * @return the result of the check (success, failed, or canceled by user).
44 ParentalCheckResult
CheckParentalPIN() const;
47 CPVRGUIActionsParentalControl(const CPVRGUIActionsParentalControl
&) = delete;
48 CPVRGUIActionsParentalControl
const& operator=(CPVRGUIActionsParentalControl
const&) = delete;
50 CPVRSettings m_settings
;
55 // pretty scope and name
56 using Parental
= CPVRGUIActionsParentalControl
;