/*!
 *
 * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    PreTreatmentSelfTests.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      31-Aug-2023
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  18-Mar-2021
 *
 */

// Qt
import QtQuick 2.12

// Project
//  Qml imports
import "qrc:/globals"
import "qrc:/components"
import "qrc:/pages/pretreatment"

/*!
 * \brief   the pre-treatment self tests screen
 */
PreTreatmentBase { id: _root
    isComplete              : timeCircleProgressValue >= timeCircleMaximum  //vPreTreatmentStates.selfTestConsumables_complete
    completeText            : qsTr("Self Test Complete!")

    // time circle
    hasTimeCircle           : true
    timeCircleMinimum       : 0
    timeCircleMaximum       : 30
    timeCircleProgressValue : 0
    timeCircleTimeTextValue : timeCircleProgressValue * 60

    // check List
    hasCheckList            : true
    checkListStepNames      : [
        qsTr("Auto-Load Blood Tubing"       ),
        qsTr("Cartridge Install Checks"     ),
        qsTr("Pressure Leak Check"          ),

    ]


// TODO FIXME
//    Connections { target: vPreTreatmentStates
//        function onSelfTestConsumables_installChanged       ( vValue ) { page(  _preTreatmentConsumablesInstall                         , vValue       )}
//        function onselfTestConsumables_primeEntered         ( vValue ) {/*      _preTreatmentConsumablesSelfTest.checkList.setItemExt( 0, vValue )*/    }
//        function onSelfTestConsumables_biCarbPumpEntered    ( vValue ) {        _preTreatmentConsumablesSelfTest.checkList.setItemExt( 0, vValue       )}
//        function onSelfTestConsumables_acidPumpEntered      ( vValue ) {        _preTreatmentConsumablesSelfTest.checkList.setItemExt( 1, vValue       )}
//    }

}
