aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Plugins.Trailers/Configuration/TrailerConfigurationPage.cs
blob: 93ce49dc2609dba6424e44405ae411d853c6d4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller.Plugins;
using System.ComponentModel.Composition;
using System.IO;

namespace MediaBrowser.Plugins.Trailers.Configuration
{
    /// <summary>
    /// Class TrailerConfigurationPage
    /// </summary>
    [Export(typeof(BaseConfigurationPage))]
    class TrailerConfigurationPage : BaseConfigurationPage
    {
        /// <summary>
        /// Gets the name.
        /// </summary>
        /// <value>The name.</value>
        public override string Name
        {
            get { return "Trailers"; }
        }

        /// <summary>
        /// Gets the HTML stream.
        /// </summary>
        /// <returns>Stream.</returns>
        public override Stream GetHtmlStream()
        {
            return GetHtmlStreamFromManifestResource("MediaBrowser.Plugins.Trailers.Configuration.configPage.html");
        }

        /// <summary>
        /// Gets the owner plugin.
        /// </summary>
        /// <returns>BasePlugin.</returns>
        public override IPlugin GetOwnerPlugin()
        {
            return Plugin.Instance;
        }

        /// <summary>
        /// Gets the type of the configuration page.
        /// </summary>
        /// <value>The type of the configuration page.</value>
        public override ConfigurationPageType ConfigurationPageType
        {
            get { return ConfigurationPageType.PluginConfiguration; }
        }
    }
}