/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.unitext.internal.zip;

/**
 * Status returned returned by <see cref="ZipTestResultHandler"/> during testing.
 */
public class TestStatus {

    /**
     * Initialise a new instance of <see cref="TestStatus"/>
     * @param _file The <see cref="ZipFile"/> this status applies to.
     */
    public TestStatus(ZipFile _file) {
        m_File = _file;
    }

    public TestOperation getOperation() {
        return m_Operation;
    }


    public ZipFile getFile() {
        return m_File;
    }


    public ZipEntry getEntry() {
        return m_Entry;
    }


    public int getErrorCount() {
        return m_ErrorCount;
    }


    public int getBytesTested() {
        return m_BytesTested;
    }


    public boolean getEntryValid() {
        return m_EntryValid;
    }


    public void addError() {
        m_ErrorCount++;
        m_EntryValid = false;
    }

    public void setOperation(TestOperation _operation) {
        m_Operation = _operation;
    }

    public void setEntry(ZipEntry _entry) {
        m_Entry = _entry;
        m_EntryValid = true;
        m_BytesTested = 0;
    }

    public void setBytesTested(int value) {
        m_BytesTested = value;
    }

    private ZipFile m_File;

    private ZipEntry m_Entry;

    private boolean m_EntryValid;

    private int m_ErrorCount;

    private int m_BytesTested;

    private TestOperation m_Operation = TestOperation.INITIALISING;
    public TestStatus() {
    }
}
