kodi
TVOSTopShelf.h
1 /*
2  * Copyright (C) 2010-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 "threads/CriticalSection.h"
12 
13 class CFileItemList;
14 
15 typedef enum
16 {
17  MOVIES = 0,
18  TV_SHOWS = 1
19 } TVOSTopShelfItemsCategory;
20 
21 
23 {
24 public:
25  static CTVOSTopShelf& GetInstance();
26  void RunTopShelf();
27  void SetTopShelfItems(CFileItemList& items, TVOSTopShelfItemsCategory category);
28  void HandleTopShelfUrl(const std::string& url, const bool run);
29 
30 private:
31  CTVOSTopShelf() = default;
32  ~CTVOSTopShelf() = default;
33 
34  static std::string m_url;
35  static bool m_handleUrl;
36 };
Represents a list of files.
Definition: FileItem.h:702
Definition: TVOSTopShelf.h:22
void RunTopShelf()
Definition: TVOSTopShelf.mm:202