diff options
Diffstat (limited to 'xbmc/pvr/guilib/PVRGUIActionsDatabase.h')
-rw-r--r-- | xbmc/pvr/guilib/PVRGUIActionsDatabase.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/xbmc/pvr/guilib/PVRGUIActionsDatabase.h b/xbmc/pvr/guilib/PVRGUIActionsDatabase.h new file mode 100644 index 0000000..62eb484 --- /dev/null +++ b/xbmc/pvr/guilib/PVRGUIActionsDatabase.h @@ -0,0 +1,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 |