kodi
ImageResource.h
1 /*
2  * Copyright (C) 2014-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "addons/Resource.h"
12 
13 #include <string>
14 
15 class CURL;
16 
17 namespace ADDON
18 {
19 
21 class CImageResource : public CResource
22 {
23 public:
24  explicit CImageResource(const AddonInfoPtr& addonInfo);
25 
26  void OnPreUnInstall() override;
27 
28  bool IsAllowed(const std::string &file) const override;
29  std::string GetFullPath(const std::string &filePath) const override;
30 
32  const std::string& GetType() const { return m_type; }
33 
34 private:
35  bool HasXbt(CURL& xbtUrl) const;
36 
37  std::string m_type;
38 };
39 
40 } /* namespace ADDON */
Definition: URL.h:21
A collection of images. The collection can have a type.
Definition: ImageResource.h:21
const std::string & GetType() const
Returns type of image collection.
Definition: ImageResource.h:32
Definition: Resource.h:19
Definition: Addon.cpp:39