[video] fix selection after changing video or extra art
[xbmc.git] / xbmc / pvr / PVRThumbLoader.h
blob33e1bd44e242ea22cc4965762385bfdbbddafd97
1 /*
2 * Copyright (C) 2005-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 "ThumbLoader.h"
13 #include <string>
15 namespace PVR
18 class CPVRThumbLoader : public CThumbLoader
20 public:
21 CPVRThumbLoader() = default;
22 ~CPVRThumbLoader() override = default;
24 bool LoadItem(CFileItem* item) override;
25 bool LoadItemCached(CFileItem* item) override;
26 bool LoadItemLookup(CFileItem* item) override;
28 void ClearCachedImage(CFileItem& item);
29 void ClearCachedImages(const CFileItemList& items);
31 protected:
32 void OnLoaderFinish() override;
34 private:
35 bool FillThumb(CFileItem& item);
36 std::string CreateChannelGroupThumb(const CFileItem& channelGroupItem);
38 bool m_bInvalidated = false;