using System;
namespace ConfusedPolarBear.Plugin.IntroSkipper;
///
/// Support bundle warning.
///
[Flags]
public enum PluginWarning
{
///
/// No warnings have been added.
///
None = 0,
///
/// Attempted to add skip button to web interface, but was unable to.
///
UnableToAddSkipButton = 1,
///
/// At least one media file on the server was unable to be fingerprinted by Chromaprint.
///
InvalidChromaprintFingerprint = 2,
///
/// The version of ffmpeg installed on the system is not compatible with the plugin.
///
IncompatibleFFmpegBuild = 4,
}
///
/// Warning manager.
///
public static class WarningManager
{
private static PluginWarning warnings;
///
/// Set warning.
///
/// Warning.
public static void SetFlag(PluginWarning warning)
{
warnings |= warning;
}
///
/// Clear warnings.
///
public static void Clear()
{
warnings = PluginWarning.None;
}
///
/// Get warnings.
///
/// Warnings.
public static string GetWarnings()
{
return warnings.ToString();
}
}