blob: 62eb4840ad673497202b43b6796e803b9e3e4368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* Copyright (C) 2016-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "pvr/IPVRComponent.h"
namespace PVR
{
class CPVRGUIActionsDatabase : public IPVRComponent
{
public:
CPVRGUIActionsDatabase() = default;
~CPVRGUIActionsDatabase() override = default;
/*!
* @brief Reset the TV database to it's initial state and delete all the data.
* @param bResetEPGOnly True to only reset the EPG database, false to reset both PVR and EPG
* database.
* @return true on success, false otherwise.
*/
bool ResetDatabase(bool bResetEPGOnly);
private:
CPVRGUIActionsDatabase(const CPVRGUIActionsDatabase&) = delete;
CPVRGUIActionsDatabase const& operator=(CPVRGUIActionsDatabase const&) = delete;
};
namespace GUI
{
// pretty scope and name
using Database = CPVRGUIActionsDatabase;
} // namespace GUI
} // namespace PVR
|