PluginStatus.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace MediaBrowser.Model.Plugins
  2. {
  3. /// <summary>
  4. /// Plugin load status.
  5. /// </summary>
  6. public enum PluginStatus
  7. {
  8. /// <summary>
  9. /// This plugin requires a restart in order for it to load. This is a memory only status.
  10. /// The actual status of the plugin after reload is present in the manifest.
  11. /// eg. A disabled plugin will still be active until the next restart, and so will have a memory status of Restart,
  12. /// but a disk manifest status of Disabled.
  13. /// </summary>
  14. Restart = 1,
  15. /// <summary>
  16. /// This plugin is currently running.
  17. /// </summary>
  18. Active = 0,
  19. /// <summary>
  20. /// This plugin has been marked as disabled.
  21. /// </summary>
  22. Disabled = -1,
  23. /// <summary>
  24. /// This plugin does not meet the TargetAbi requirements.
  25. /// </summary>
  26. NotSupported = -2,
  27. /// <summary>
  28. /// This plugin caused an error when instantiated. (Either DI loop, or exception)
  29. /// </summary>
  30. Malfunctioned = -3,
  31. /// <summary>
  32. /// This plugin has been superceded by another version.
  33. /// </summary>
  34. Superceded = -4,
  35. /// <summary>
  36. /// An attempt to remove this plugin from disk will happen at every restart.
  37. /// It will not be loaded, if unable to do so.
  38. /// </summary>
  39. Deleted = -5
  40. }
  41. }