Class BrowseLocationState
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F199 step 6 / T-F210: what the Archive Browser offers where the user is. Inside an archive: the extract actions and their options; Test only for ZIP (tar.exe has no test mode, and Explorer offers Test for ZIP only); "delete after" only for an archive on disk, not a nested one (that is a temp copy). Outside (a real folder or "This PC" after Up, T-F107): none of it, and a line saying where the user is.
public sealed record BrowseLocationState : IEquatable<BrowseLocationState>
- Inheritance
-
BrowseLocationState
- Implements
- Inherited Members
Constructors
BrowseLocationState(bool, bool, bool, bool, bool)
T-F199 step 6 / T-F210: what the Archive Browser offers where the user is. Inside an archive: the extract actions and their options; Test only for ZIP (tar.exe has no test mode, and Explorer offers Test for ZIP only); "delete after" only for an archive on disk, not a nested one (that is a temp copy). Outside (a real folder or "This PC" after Up, T-F107): none of it, and a line saying where the user is.
public BrowseLocationState(bool ShowsExtractActions, bool ShowsOptions, bool ShowsTest, bool OffersDeleteAfter, bool ShowsOutsideInfo)
Parameters
ShowsExtractActionsboolExtract selected / Extract all.
ShowsOptionsboolThe destination options.
ShowsTestboolTest archive.
OffersDeleteAfterbool"Move the archive to the Recycle Bin" applies.
ShowsOutsideInfoboolThe "this is a folder, not an archive" line.
Properties
OffersDeleteAfter
"Move the archive to the Recycle Bin" applies.
public bool OffersDeleteAfter { get; init; }
Property Value
ShowsExtractActions
Extract selected / Extract all.
public bool ShowsExtractActions { get; init; }
Property Value
ShowsOptions
The destination options.
public bool ShowsOptions { get; init; }
Property Value
ShowsOutsideInfo
The "this is a folder, not an archive" line.
public bool ShowsOutsideInfo { get; init; }
Property Value
ShowsTest
Test archive.
public bool ShowsTest { get; init; }
Property Value
Methods
For(bool, bool, bool)
The state for a location.
public static BrowseLocationState For(bool insideArchive, bool nested, bool isZip)
Parameters
Returns
WithoutListing()
T-F275 step 3c: the state for an archive kept open although its listing failed, because PAR2 files lie next to it. There is nothing to extract or delete, only the test.
public BrowseLocationState WithoutListing()