PluginStatus.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 superseded by another version.
  33. /// </summary>
  34. Superseded = -4,
  35. /// <summary>
  36. /// [DEPRECATED] See Superseded.
  37. /// </summary>
  38. Superceded = -4,
  39. /// <summary>
  40. /// An attempt to remove this plugin from disk will happen at every restart.
  41. /// It will not be loaded, if unable to do so.
  42. /// </summary>
  43. Deleted = -5
  44. }
  45. }