diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-12-31 18:47:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-31 18:47:05 -0500 |
| commit | 406ae3e43a20216292c554151fa2d0e2a09edfa3 (patch) | |
| tree | 288ceeb9831470d5f573fccc6619f23b259c5531 /MediaBrowser.Model/Plugins/PluginStatus.cs | |
| parent | e006cc8ac32ac470a203f60dfd49cbe3acc999e7 (diff) | |
| parent | bd1c115e46795f7db38366d31de79bf2ff88ca8d (diff) | |
Merge pull request #4709 from BaronGreenback/PluginDowngrade
Diffstat (limited to 'MediaBrowser.Model/Plugins/PluginStatus.cs')
| -rw-r--r-- | MediaBrowser.Model/Plugins/PluginStatus.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Plugins/PluginStatus.cs b/MediaBrowser.Model/Plugins/PluginStatus.cs new file mode 100644 index 000000000..4b9b9bbee --- /dev/null +++ b/MediaBrowser.Model/Plugins/PluginStatus.cs @@ -0,0 +1,47 @@ +namespace MediaBrowser.Model.Plugins +{ + /// <summary> + /// Plugin load status. + /// </summary> + public enum PluginStatus + { + /// <summary> + /// This plugin requires a restart in order for it to load. This is a memory only status. + /// The actual status of the plugin after reload is present in the manifest. + /// eg. A disabled plugin will still be active until the next restart, and so will have a memory status of Restart, + /// but a disk manifest status of Disabled. + /// </summary> + Restart = 1, + + /// <summary> + /// This plugin is currently running. + /// </summary> + Active = 0, + + /// <summary> + /// This plugin has been marked as disabled. + /// </summary> + Disabled = -1, + + /// <summary> + /// This plugin does not meet the TargetAbi requirements. + /// </summary> + NotSupported = -2, + + /// <summary> + /// This plugin caused an error when instantiated. (Either DI loop, or exception) + /// </summary> + Malfunctioned = -3, + + /// <summary> + /// This plugin has been superceded by another version. + /// </summary> + Superceded = -4, + + /// <summary> + /// An attempt to remove this plugin from disk will happen at every restart. + /// It will not be loaded, if unable to do so. + /// </summary> + Deleted = -5 + } +} |
