[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / addons / ImageResource.h
blobf49a072b72ed1ee6457375bce35eecc032869fbe
1 /*
2 * Copyright (C) 2014-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 "addons/Resource.h"
13 #include <string>
15 class CURL;
17 namespace ADDON
20 //! \brief A collection of images. The collection can have a type.
21 class CImageResource : public CResource
23 public:
24 explicit CImageResource(const AddonInfoPtr& addonInfo);
26 void OnPreUnInstall() override;
28 bool IsAllowed(const std::string &file) const override;
29 std::string GetFullPath(const std::string &filePath) const override;
31 //! \brief Returns type of image collection
32 const std::string& GetType() const { return m_type; }
34 private:
35 bool HasXbt(CURL& xbtUrl) const;
37 std::string m_type; //!< Type of images
40 } /* namespace ADDON */