using System;
using System.Diagnostics.CodeAnalysis;
namespace VersOne.Epub.Options
{
///
/// Various options to configure the behavior of the EPUB content reader which is used for loading local content files.
///
public class ContentReaderOptions
{
///
/// Initializes a new instance of the class.
///
/// An optional preset to initialize the class with a predefined set of options.
[SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Temporarily ignore unused 'preset' parameter.")]
public ContentReaderOptions(EpubReaderOptionsPreset? preset = null)
{
}
///
/// Occurs when a local content file is listed in the EPUB manifest but the content reader is unable to find it in the EPUB archive.
/// This event lets the application to be notified of such errors and to decide how EPUB content reader should handle the missing file.
///
public event EventHandler? ContentFileMissing;
internal void RaiseContentFileMissingEvent(ContentFileMissingEventArgs contentFileMissingEventArgs)
{
ContentFileMissing?.Invoke(this, contentFileMissingEventArgs);
}
}
}