kodi
EpgSearchPath.h
1 /*
2  * Copyright (C) 2012-2021 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 <string>
12 
13 namespace PVR
14 {
15 class CPVREpgSearchFilter;
16 
18 {
19 public:
20  static const std::string PATH_SEARCH_DIALOG;
21  static const std::string PATH_TV_SEARCH;
22  static const std::string PATH_TV_SAVEDSEARCHES;
23  static const std::string PATH_RADIO_SEARCH;
24  static const std::string PATH_RADIO_SAVEDSEARCHES;
25 
26  explicit CPVREpgSearchPath(const std::string& strPath);
27  explicit CPVREpgSearchPath(const CPVREpgSearchFilter& search);
28 
29  bool IsValid() const { return m_bValid; }
30 
31  const std::string& GetPath() const { return m_path; }
32  bool IsSearchRoot() const { return m_bRoot; }
33  bool IsRadio() const { return m_bRadio; }
34  bool IsSavedSearchesRoot() const { return m_bSavedSearchesRoot; }
35  bool IsSavedSearch() const { return m_bSavedSearch; }
36  int GetId() const { return m_iId; }
37 
38 private:
39  bool Init(const std::string& strPath);
40 
41  std::string m_path;
42  bool m_bValid = false;
43  bool m_bRoot = false;
44  bool m_bRadio = false;
45  bool m_bSavedSearchesRoot = false;
46  bool m_bSavedSearch = false;
47  int m_iId = -1;
48 };
49 } // namespace PVR
Definition: EpgSearchFilter.h:23
Definition: ContextMenuManager.h:24
Definition: EpgSearchPath.h:17