2 * Copyright (C) 2005-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.
20 class IVideoItemArtworkHandler
23 virtual ~IVideoItemArtworkHandler() = default;
25 virtual std::string
GetCurrentArt() const = 0;
27 virtual std::string
GetEmbeddedArt() const { return {}; }
28 virtual std::vector
<std::string
> GetRemoteArt() const { return {}; }
29 virtual std::string
GetLocalArt() const { return {}; }
31 virtual std::string
GetDefaultIcon() const = 0;
32 virtual bool SupportsFlippedArt() const { return false; }
34 virtual void AddItemPathToFileBrowserSources(std::vector
<CMediaSource
>& sources
) {}
36 virtual std::string
UpdateEmbeddedArt(const std::string
& art
) { return art
; }
37 virtual std::string
UpdateRemoteArt(const std::vector
<std::string
>& art
, int index
)
42 virtual void PersistArt(const std::string
& art
) = 0;
45 class IVideoItemArtworkHandlerFactory
48 static std::unique_ptr
<IVideoItemArtworkHandler
> Create(const std::shared_ptr
<CFileItem
>& item
,
49 const std::string
& mediaType
,
50 const std::string
& artType
);