kodi
PVRGUIActionsParentalControl.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 #include "pvr/settings/PVRSettings.h"
13 
14 #include <memory>
15 
16 namespace PVR
17 {
18 enum class ParentalCheckResult
19 {
20  CANCELED,
21  FAILED,
22  SUCCESS
23 };
24 
25 class CPVRChannel;
26 
28 {
29 public:
31  ~CPVRGUIActionsParentalControl() override = default;
32 
38  ParentalCheckResult CheckParentalLock(const std::shared_ptr<const CPVRChannel>& channel) const;
39 
44  ParentalCheckResult CheckParentalPIN() const;
45 
46 private:
48  CPVRGUIActionsParentalControl const& operator=(CPVRGUIActionsParentalControl const&) = delete;
49 
50  CPVRSettings m_settings;
51 };
52 
53 namespace GUI
54 {
55 // pretty scope and name
56 using Parental = CPVRGUIActionsParentalControl;
57 } // namespace GUI
58 
59 } // namespace PVR
Definition: PVRGUIActionsParentalControl.h:27
Definition: ContextMenuManager.h:24
Definition: IPVRComponent.h:13
Definition: PVRSettings.h:27