[videodb] Remove nested transaction when saving state after stopping PVR playback
[xbmc.git] / xbmc / imagefiles / SpecialImageFileLoader.h
blob212facf62b126a229f65212328ff018cd604d8a6
1 /*
2 * Copyright (C) 2023 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 <memory>
12 #include <string>
14 class CTexture;
16 namespace IMAGE_FILES
18 class CImageFileURL;
20 /*!
21 * @brief An interface to load special image files into a texture for display.
23 * Special image files are images that are more than just a link or path to an
24 * image file, such as generated or embedded images - like album covers
25 * embedded in music files or thumbnails generated from video files.
27 class ISpecialImageFileLoader
29 public:
30 virtual bool CanLoad(const std::string& specialType) const = 0;
31 virtual std::unique_ptr<CTexture> Load(const CImageFileURL& imageFile) const = 0;
32 virtual ~ISpecialImageFileLoader() = default;
35 } // namespace IMAGE_FILES