2023-09-18 00:33:24 -04:00
|
|
|
|
namespace BinaryObjectScanner
|
2018-07-18 10:38:41 -07:00
|
|
|
|
{
|
2022-12-08 22:37:57 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Struct representing protection scanning progress
|
|
|
|
|
|
/// </summary>
|
2023-11-22 12:22:01 -05:00
|
|
|
|
#if NET20 || NET35 || NET40
|
2023-11-14 16:10:10 -05:00
|
|
|
|
public class ProtectionProgress : System.EventArgs
|
|
|
|
|
|
#else
|
2022-12-08 22:37:57 -08:00
|
|
|
|
public struct ProtectionProgress
|
2023-11-14 16:10:10 -05:00
|
|
|
|
#endif
|
2018-07-18 10:38:41 -07:00
|
|
|
|
{
|
2022-12-08 22:37:57 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Filename to report progress for
|
|
|
|
|
|
/// </summary>
|
2024-10-03 12:55:38 -04:00
|
|
|
|
public string? Filename { get; }
|
2022-12-08 22:37:57 -08:00
|
|
|
|
|
2025-09-02 22:04:02 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Number of levels deep the file is
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Depth { get; }
|
|
|
|
|
|
|
2022-12-08 22:37:57 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Value between 0 and 1 representign the percentage completed
|
|
|
|
|
|
/// </summary>
|
2024-10-03 12:55:38 -04:00
|
|
|
|
public float Percentage { get; }
|
2022-12-08 22:37:57 -08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Protection information to report
|
|
|
|
|
|
/// </summary>
|
2024-10-03 12:55:38 -04:00
|
|
|
|
public string? Protection { get; }
|
2018-07-18 10:38:41 -07:00
|
|
|
|
|
2025-09-02 22:04:02 -04:00
|
|
|
|
public ProtectionProgress(string? filename, int depth, float percentage, string? protection)
|
|
|
|
|
|
{
|
|
|
|
|
|
Filename = filename;
|
|
|
|
|
|
Depth = depth;
|
2024-10-03 12:51:49 -04:00
|
|
|
|
Percentage = percentage;
|
|
|
|
|
|
Protection = protection;
|
2018-07-18 10:38:41 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|