kodi
imagefactory.h
1 /*
2  * Copyright (C) 2012-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 "URL.h"
12 #include "iimage.h"
13 #include "threads/CriticalSection.h"
14 
16 {
17 public:
18  ImageFactory() = default;
19  virtual ~ImageFactory() = default;
20 
21  static IImage* CreateLoader(const std::string& strFileName);
22  static IImage* CreateLoader(const CURL& url);
23  static IImage* CreateLoaderFromMimeType(const std::string& strMimeType);
24 
25 private:
26  static CCriticalSection m_createSec;
27 };
Definition: URL.h:21
Definition: imagefactory.h:15
Definition: iimage.h:13