[ALL] Make ArchiveScanLevel and DupeType flags

This commit is contained in:
Matt Nadareski
2016-10-05 20:33:02 -07:00
parent 9d42cdf805
commit 9f9b54cb89
8 changed files with 63 additions and 54 deletions

View File

@@ -2,6 +2,33 @@
namespace SabreTools.Helper
{
/// <summary>
/// Determines the level to scan archives at
/// </summary>
[Flags]
public enum ArchiveScanLevel
{
// 7zip
SevenZipExternal = 0x0001,
SevenZipInternal = 0x0002,
SevenZipBoth = SevenZipExternal | SevenZipInternal,
// GZip
GZipExternal = 0x0010,
GZipInternal = 0x0020,
GZipBoth = GZipExternal | GZipInternal,
// RAR
RarExternal = 0x0100,
RarInternal = 0x0200,
RarBoth = RarExternal | RarInternal,
// Zip
ZipExternal = 0x1000,
ZipInternal = 0x2000,
ZipBoth = ZipExternal | ZipInternal,
}
/// <summary>
/// Determines which diffs should be created
/// </summary>
@@ -19,6 +46,21 @@ namespace SabreTools.Helper
ReverseCascade = 0x10,
}
/// <summary>
/// Determines which type of duplicate a file is
/// </summary>
[Flags]
public enum DupeType
{
// Type of match
Hash = 0x01,
All = 0x02,
// Location of match
Internal = 0x10,
External = 0x20,
}
/// <summary>
/// Determines the DAT output format
/// </summary>
@@ -92,33 +134,6 @@ namespace SabreTools.Helper
Bit2 = 0x0004,
}
/// <summary>
/// Determines the level to scan archives at
/// </summary>
[Flags]
public enum ArchiveScanLevel
{
// 7zip
SevenZipExternal = 0x0001,
SevenZipInternal = 0x0002,
SevenZipBoth = SevenZipExternal | SevenZipInternal,
// GZip
GZipExternal = 0x0010,
GZipInternal = 0x0020,
GZipBoth = GZipExternal | GZipInternal,
// RAR
RarExternal = 0x0100,
RarInternal = 0x0200,
RarBoth = RarExternal | RarInternal,
// Zip
ZipExternal = 0x1000,
ZipInternal = 0x2000,
ZipBoth = ZipExternal | ZipInternal,
}
/// <summary>
/// Zipfile special status
/// </summary>