kodi
PVRThumbLoader.h
1 /*
2  * Copyright (C) 2005-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 "ThumbLoader.h"
12 
13 #include <string>
14 
15 namespace PVR
16 {
17 
19 {
20 public:
21  CPVRThumbLoader() = default;
22  ~CPVRThumbLoader() override = default;
23 
24  bool LoadItem(CFileItem* item) override;
25  bool LoadItemCached(CFileItem* item) override;
26  bool LoadItemLookup(CFileItem* item) override;
27 
28  void ClearCachedImage(CFileItem& item);
29  void ClearCachedImages(const CFileItemList& items);
30 
31 protected:
32  void OnLoaderFinish() override;
33 
34 private:
35  bool FillThumb(CFileItem& item);
36  std::string CreateChannelGroupThumb(const CFileItem& channelGroupItem);
37 
38  bool m_bInvalidated = false;
39 };
40 
41 }
Definition: ContextMenuManager.h:24
Represents a list of files.
Definition: FileItem.h:702
Definition: PVRThumbLoader.h:18
Represents a file on a share.
Definition: FileItem.h:102
Definition: ThumbLoader.h:17