[video] fix selection after changing video or extra art
[xbmc.git] / xbmc / pvr / guilib / PVRGUIActionsEPG.h
blobe0a3edcf8c827308a9efccd3db3665a93a49b436
1 /*
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.
7 */
9 #pragma once
11 #include "pvr/IPVRComponent.h"
13 class CFileItem;
15 namespace PVR
17 class CPVRGUIActionsEPG : public IPVRComponent
19 public:
20 CPVRGUIActionsEPG() = default;
21 ~CPVRGUIActionsEPG() override = default;
23 /*!
24 * @brief Open a dialog with epg information for a given item.
25 * @param item containing epg data to show. item must be an epg tag, a channel or a timer.
26 * @return true on success, false otherwise.
28 bool ShowEPGInfo(const CFileItem& item) const;
30 /*!
31 * @brief Open a dialog with the epg list for a given item.
32 * @param item containing channel info. item must be an epg tag, a channel or a timer.
33 * @return true on success, false otherwise.
35 bool ShowChannelEPG(const CFileItem& item) const;
37 /*!
38 * @brief Open a window containing a list of epg tags 'similar' to a given item.
39 * @param item containing epg data for matching. item must be an epg tag, a channel or a
40 * recording.
41 * @return true on success, false otherwise.
43 bool FindSimilar(const CFileItem& item) const;
45 /*!
46 * @brief Execute a saved search. Displays result in search window if it is open.
47 * @param item The item containing a search filter.
48 * @return True on success, false otherwise.
50 bool ExecuteSavedSearch(const CFileItem& item);
52 /*!
53 * @brief Edit a saved search. Opens the search dialog.
54 * @param item The item containing a search filter.
55 * @return True on success, false otherwise.
57 bool EditSavedSearch(const CFileItem& item);
59 /*!
60 * @brief Rename a saved search. Opens a title input dialog.
61 * @param item The item containing a search filter.
62 * @return True on success, false otherwise.
64 bool RenameSavedSearch(const CFileItem& item);
66 /*!
67 * @brief Delete a saved search. Opens confirmation dialog before deleting.
68 * @param item The item containing a search filter.
69 * @return True on success, false otherwise.
71 bool DeleteSavedSearch(const CFileItem& item);
73 private:
74 CPVRGUIActionsEPG(const CPVRGUIActionsEPG&) = delete;
75 CPVRGUIActionsEPG const& operator=(CPVRGUIActionsEPG const&) = delete;
78 namespace GUI
80 // pretty scope and name
81 using EPG = CPVRGUIActionsEPG;
82 } // namespace GUI
84 } // namespace PVR