2 import QtQuick.Window 2.2
3 import QtQuick.Layouts 1.1
4 import QtQuick.Controls 2.0
5 import AGL.Demo.Controls 1.0
12 scale: screenInfo.scale_factor()
13 property string messageText: "Incoming Call"
15 function qmlOnScreenParameter(message) {
16 console.log(qsTr('OnScreenApp:QML:Phone >>> qmlOnScreenParameter.'), message);
17 var message_json = JSON.parse (message);
18 var text = message_json.status
20 if(text === "incoming call")
22 messageText = "Incoming Call";
23 answerButton.active = true;
24 answerButton.checked = false;
26 else if(text === "call answered")
28 messageText = "Call Answered";
29 answerButton.active = false;
30 answerButton.checked = true;
32 else if(text === "call rejected")
34 messageText = "Call Rejected";
35 answerButton.active = false;
36 answerButton.checked = true;
47 anchors.bottomMargin: 0
48 source: "images/heart_1079x400.png"
57 onImage: 'images/disable.png'
58 offImage: 'images/answer.png'
59 property bool active: true
62 if(!checked && !active) {
67 messageText = "Call Answer"
68 eventHandler.onScreenReply("call answer");
80 offImage: 'images/reject.png'
83 messageText = "Call Reject"
84 eventHandler.onScreenReply("call reject");
95 textFormat: Text.AutoText
96 wrapMode: Text.WordWrap
97 verticalAlignment: Text.AlignVCenter
98 horizontalAlignment: Text.AlignHCenter
100 font.weight: Font.ExtraBold
110 textFormat: Text.AutoText
111 wrapMode: Text.WordWrap
112 verticalAlignment: Text.AlignVCenter
113 horizontalAlignment: Text.AlignHCenter
115 font.weight: Font.DemiBold