/*!
 * 
 * Copyright (c) 2019-2020 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 PowerOff.qml
 * \author (last) Behrouz NemaiPour
 * \date (last) 18-Jun-2020
 * \author (original) Behrouz NematiPour
 * \date (original) 18-Oct-2019
 * 
 */

// Qt
import QtQuick 2.12

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

/*!
 * \brief   Contains the PowerOff Dialog Implementation
 */
ModalDialog { id : _root
    contentItem.objectName: "PowerOffDialog"  //SquishQt testability

    Column {
        spacing: Variables.columnSpacing
        anchors.centerIn: parent
        TitleText { id: _titleText
            width: parent.width
            text: qsTr("Are you sure you want to Shutdown?")
        }
        TouchRect { id : _shutdownRect
            text.text: qsTr("SHUTDOWN")
            button.onPressed: {
                accepted()
                close()
            }
        }
        TouchRect { id : _cancelTouch
            text.text: qsTr("CANCEL")
            button.onPressed: {
                rejected()
                close()
            }
        }
    }
}
