2019-01-13 20:01:16 +00:00
|
|
|
using System;
|
2019-01-13 19:25:11 +00:00
|
|
|
using MediaBrowser.Model.Plugins;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Common.Plugins
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-12-06 23:48:54 +00:00
|
|
|
/// Defines the <see cref="IPlugin" />.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public interface IPlugin
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-12-10 23:13:57 +00:00
|
|
|
/// Gets the name of the plugin.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-12-06 23:48:54 +00:00
|
|
|
/// Gets the Description.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
string Description { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the unique id.
|
|
|
|
/// </summary>
|
|
|
|
Guid Id { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2019-12-10 23:13:57 +00:00
|
|
|
/// Gets the plugin version.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
Version Version { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2019-12-10 23:13:57 +00:00
|
|
|
/// Gets the path to the assembly file.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
string AssemblyFilePath { get; }
|
|
|
|
|
2020-06-22 09:13:28 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets a value indicating whether the plugin can be uninstalled.
|
|
|
|
/// </summary>
|
|
|
|
bool CanUninstall { get; }
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2019-12-10 23:13:57 +00:00
|
|
|
/// Gets the full path to the data folder, where the plugin can store any miscellaneous files needed.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
string DataFolderPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-12-06 23:48:54 +00:00
|
|
|
/// Gets the <see cref="PluginInfo"/>.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <returns>PluginInfo.</returns>
|
|
|
|
PluginInfo GetPluginInfo();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Called when just before the plugin is uninstalled from the server.
|
|
|
|
/// </summary>
|
|
|
|
void OnUninstalling();
|
|
|
|
}
|
2019-01-13 19:30:41 +00:00
|
|
|
}
|