TrailerConfigurationPage.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using MediaBrowser.Common.Plugins;
  2. using MediaBrowser.Controller.Plugins;
  3. using System.ComponentModel.Composition;
  4. using System.IO;
  5. namespace MediaBrowser.Plugins.Trailers.Configuration
  6. {
  7. /// <summary>
  8. /// Class TrailerConfigurationPage
  9. /// </summary>
  10. [Export(typeof(BaseConfigurationPage))]
  11. class TrailerConfigurationPage : BaseConfigurationPage
  12. {
  13. /// <summary>
  14. /// Gets the name.
  15. /// </summary>
  16. /// <value>The name.</value>
  17. public override string Name
  18. {
  19. get { return "Trailers"; }
  20. }
  21. /// <summary>
  22. /// Gets the HTML stream.
  23. /// </summary>
  24. /// <returns>Stream.</returns>
  25. public override Stream GetHtmlStream()
  26. {
  27. return GetHtmlStreamFromManifestResource("MediaBrowser.Plugins.Trailers.Configuration.configPage.html");
  28. }
  29. /// <summary>
  30. /// Gets the owner plugin.
  31. /// </summary>
  32. /// <returns>BasePlugin.</returns>
  33. public override IPlugin GetOwnerPlugin()
  34. {
  35. return Plugin.Instance;
  36. }
  37. /// <summary>
  38. /// Gets the type of the configuration page.
  39. /// </summary>
  40. /// <value>The type of the configuration page.</value>
  41. public override ConfigurationPageType ConfigurationPageType
  42. {
  43. get { return ConfigurationPageType.PluginConfiguration; }
  44. }
  45. }
  46. }