Merge pull request #26264 from the-black-eagle/mka_end_durations
[xbmc.git] / xbmc / addons / Webinterface.h
blob016496eb75bd4706c7d73f4bfceb622e807a07cf
1 /*
2 * Copyright (C) 2015-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/Addon.h"
13 #define WEBINTERFACE_DEFAULT_ENTRY_POINT "index.html"
15 namespace ADDON
17 typedef enum WebinterfaceType
19 WebinterfaceTypeStatic = 0,
20 WebinterfaceTypeWsgi
21 } WebinterfaceType;
23 class CWebinterface : public CAddon
25 public:
26 explicit CWebinterface(const AddonInfoPtr& addonInfo);
28 WebinterfaceType GetType() const { return m_type; }
29 const std::string& EntryPoint() const { return m_entryPoint; }
31 std::string GetEntryPoint(const std::string &path) const;
32 std::string GetBaseLocation() const;
34 private:
35 WebinterfaceType m_type = WebinterfaceTypeStatic;
36 std::string m_entryPoint;