From 746c5d2fa7cd14f648c72a87ce52e5096c1f03f1 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Fri, 22 Feb 2013 01:28:57 -0500 Subject: moved Plugins to separate repo --- .../Plugins/BaseConfigurationPage.cs | 81 ---------------------- .../Plugins/IPluginConfigurationPage.cs | 61 ++++++++++++++++ 2 files changed, 61 insertions(+), 81 deletions(-) delete mode 100644 MediaBrowser.Controller/Plugins/BaseConfigurationPage.cs create mode 100644 MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs (limited to 'MediaBrowser.Controller/Plugins') diff --git a/MediaBrowser.Controller/Plugins/BaseConfigurationPage.cs b/MediaBrowser.Controller/Plugins/BaseConfigurationPage.cs deleted file mode 100644 index dc9405840a..0000000000 --- a/MediaBrowser.Controller/Plugins/BaseConfigurationPage.cs +++ /dev/null @@ -1,81 +0,0 @@ -using MediaBrowser.Common.Plugins; -using System.IO; - -namespace MediaBrowser.Controller.Plugins -{ - /// - /// Class BaseConfigurationPage - /// - public abstract class BaseConfigurationPage - { - /// - /// Gets the name. - /// - /// The name. - public abstract string Name { get; } - - /// - /// Gets the description. - /// - /// The description. - public virtual string Description - { - get { return string.Empty; } - } - - /// - /// Gets the type of the configuration page. - /// - /// The type of the configuration page. - public virtual ConfigurationPageType ConfigurationPageType - { - get { return ConfigurationPageType.PluginConfiguration; } - } - - /// - /// Gets the HTML stream from manifest resource. - /// - /// The resource. - /// Stream. - protected Stream GetHtmlStreamFromManifestResource(string resource) - { - return GetType().Assembly.GetManifestResourceStream(resource); - } - - /// - /// Gets the HTML stream. - /// - /// Stream. - public abstract Stream GetHtmlStream(); - - /// - /// Gets the name of the plugin. - /// - /// The name of the plugin. - public virtual string OwnerPluginName - { - get { return GetOwnerPlugin().Name; } - } - - /// - /// Gets the owner plugin. - /// - /// BasePlugin. - public abstract IPlugin GetOwnerPlugin(); - } - - /// - /// Enum ConfigurationPageType - /// - public enum ConfigurationPageType - { - /// - /// The plugin configuration - /// - PluginConfiguration, - /// - /// The none - /// - None - } -} diff --git a/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs b/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs new file mode 100644 index 0000000000..38fe368578 --- /dev/null +++ b/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs @@ -0,0 +1,61 @@ +using System; +using System.IO; + +namespace MediaBrowser.Controller.Plugins +{ + /// + /// Interface IConfigurationPage + /// + public interface IPluginConfigurationPage + { + /// + /// Gets the name. + /// + /// The name. + string Name { get; } + + /// + /// Gets the type of the configuration page. + /// + /// The type of the configuration page. + ConfigurationPageType ConfigurationPageType { get; } + + /// + /// Gets the plugin id. + /// + /// The plugin id. + Guid? PluginId { get; } + + /// + /// Gets the HTML stream. + /// + /// Stream. + Stream GetHtmlStream(); + + /// + /// Gets the version. Typically taken from Plugin.Version + /// + /// The version. + string Version { get; } + + /// + /// For http caching purposes. Typically taken from Plugin.AssemblyDateLastModified + /// + DateTime DateLastModified { get; } + } + + /// + /// Enum ConfigurationPageType + /// + public enum ConfigurationPageType + { + /// + /// The plugin configuration + /// + PluginConfiguration, + /// + /// The none + /// + None + } +} -- cgit v1.2.3