summaryrefslogtreecommitdiffstats
path: root/xbmc/guilib/imagefactory.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xbmc/guilib/imagefactory.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/xbmc/guilib/imagefactory.h b/xbmc/guilib/imagefactory.h
new file mode 100644
index 0000000..b224ef6
--- /dev/null
+++ b/xbmc/guilib/imagefactory.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2012-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "URL.h"
+#include "iimage.h"
+#include "threads/CriticalSection.h"
+
+class ImageFactory
+{
+public:
+ ImageFactory() = default;
+ virtual ~ImageFactory() = default;
+
+ static IImage* CreateLoader(const std::string& strFileName);
+ static IImage* CreateLoader(const CURL& url);
+ static IImage* CreateLoaderFromMimeType(const std::string& strMimeType);
+
+private:
+ static CCriticalSection m_createSec; //!< Critical section for add-on creation.
+};