mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-26 09:31:04 +01:00
Add GPL modules
This commit is contained in:
20
MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs
Normal file
20
MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MediaBrowser.Controller.Plugins
|
||||
{
|
||||
public interface ILocalizablePlugin
|
||||
{
|
||||
Stream GetDictionary(string culture);
|
||||
}
|
||||
|
||||
public static class LocalizablePluginHelper
|
||||
{
|
||||
public static Stream GetDictionary(Assembly assembly, string manifestPrefix, string culture)
|
||||
{
|
||||
// Find all dictionaries using GetManifestResourceNames, start start with the prefix
|
||||
// Return the one for the culture if exists, otherwise return the default
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
50
MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs
Normal file
50
MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using MediaBrowser.Common.Plugins;
|
||||
using System.IO;
|
||||
|
||||
namespace MediaBrowser.Controller.Plugins
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IConfigurationPage
|
||||
/// </summary>
|
||||
public interface IPluginConfigurationPage
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the configuration page.
|
||||
/// </summary>
|
||||
/// <value>The type of the configuration page.</value>
|
||||
ConfigurationPageType ConfigurationPageType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the plugin.
|
||||
/// </summary>
|
||||
/// <value>The plugin.</value>
|
||||
IPlugin Plugin { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTML stream.
|
||||
/// </summary>
|
||||
/// <returns>Stream.</returns>
|
||||
Stream GetHtmlStream();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum ConfigurationPageType
|
||||
/// </summary>
|
||||
public enum ConfigurationPageType
|
||||
{
|
||||
/// <summary>
|
||||
/// The plugin configuration
|
||||
/// </summary>
|
||||
PluginConfiguration,
|
||||
/// <summary>
|
||||
/// The none
|
||||
/// </summary>
|
||||
None
|
||||
}
|
||||
}
|
||||
20
MediaBrowser.Controller/Plugins/IServerEntryPoint.cs
Normal file
20
MediaBrowser.Controller/Plugins/IServerEntryPoint.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.Plugins
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IServerEntryPoint
|
||||
/// </summary>
|
||||
public interface IServerEntryPoint : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Runs this instance.
|
||||
/// </summary>
|
||||
void Run();
|
||||
}
|
||||
|
||||
public interface IRunBeforeStartup
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user