import QtQuick 2.0

Timer {
    id: sleepTimer
    interval: 60000
    repeat: false
    onTriggered: {
        if (sleepTime == 1) { radioPlayer.pauseStream();sleepTime = 0;} else sleepTime = (sleepTime = sleepTime -1);
    }
    running: sleepTime > 0
}
