/*!
 *
 * Copyright (c) 2021-2026 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    EndTreatmentBase.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      15-May-2021
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  15-May-2021
 *
 */

// Qt
import QtQuick 2.12

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

/*!
 * \brief   the parent page of the End-treatment screens
 */
TreatmentFlowBase { id: _root
    objectName: "_EndTreatmentBase"

    property bool   hasTimeout      : false
    property alias  timeout         : _timeoutLoader.item
    property int    timeoutValue    : 0


    Loader { id: _timeoutLoader
        active              : _root.hasTimeout
        anchors {
            horizontalCenter: parent.horizontalCenter
            bottom          : title.top
            bottomMargin    : Variables.minVGap
        }
        sourceComponent     : TimeText { id: _timeout
            textPixelSize   : 30
            textWeight      : Font.Normal
            secondsVisible  : false
            seconds         : _root.timeoutValue
        }
    }
}
