[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / windowing / WindowSystemFactory.h
blob20e051dc84a6d965f6b7ea46e7362ad38a35de4a
1 /*
2 * Copyright (C) 2005-2020 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 "WinSystem.h"
13 #include <functional>
14 #include <list>
15 #include <map>
16 #include <memory>
18 namespace KODI
20 namespace WINDOWING
23 class CWindowSystemFactory
25 public:
26 static std::unique_ptr<CWinSystemBase> CreateWindowSystem(const std::string& name);
27 static std::list<std::string> GetWindowSystems();
28 static void RegisterWindowSystem(
29 const std::function<std::unique_ptr<CWinSystemBase>()>& createFunction,
30 const std::string& name = "default");
32 private:
33 static std::list<std::pair<std::string, std::function<std::unique_ptr<CWinSystemBase>()>>>
34 m_windowSystems;
37 } // namespace WINDOWING
38 } // namespace KODI