Table of Contents

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

ShowsExtractActions bool

Extract selected / Extract all.

ShowsOptions bool

The destination options.

ShowsTest bool

Test archive.

OffersDeleteAfter bool

"Move the archive to the Recycle Bin" applies.

ShowsOutsideInfo bool

The "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

bool

ShowsExtractActions

Extract selected / Extract all.

public bool ShowsExtractActions { get; init; }

Property Value

bool

ShowsOptions

The destination options.

public bool ShowsOptions { get; init; }

Property Value

bool

ShowsOutsideInfo

The "this is a folder, not an archive" line.

public bool ShowsOutsideInfo { get; init; }

Property Value

bool

ShowsTest

Test archive.

public bool ShowsTest { get; init; }

Property Value

bool

Methods

For(bool, bool, bool)

The state for a location.

public static BrowseLocationState For(bool insideArchive, bool nested, bool isZip)

Parameters

insideArchive bool
nested bool
isZip bool

Returns

BrowseLocationState

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()

Returns

BrowseLocationState