[ExecString] combine SplitParameters with identical function of CUtil
[xbmc.git] / xbmc / imagefiles / SpecialImageLoaderFactory.h
blobc2fae5208645933d5b06c73582b1d68f384856c6
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 "imagefiles/SpecialImageFileLoader.h"
13 #include <array>
14 #include <memory>
15 #include <string>
17 class CTexture;
19 namespace IMAGE_FILES
21 class CSpecialImageLoaderFactory
23 public:
24 CSpecialImageLoaderFactory();
26 std::unique_ptr<CTexture> Load(const std::string& specialType,
27 const std::string& filePath,
28 unsigned int preferredWidth,
29 unsigned int preferredHeight) const;
31 private:
32 std::array<std::unique_ptr<ISpecialImageFileLoader>, 6> m_specialImageLoaders{};
34 } // namespace IMAGE_FILES