2 * Copyright 2012 Intel Corporation.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
16 property string deviceName: ""
17 property string key: ""
18 signal replyRequestConfirmation(bool reply)
22 width: parent.width - 15
23 anchors {centerIn: parent}
25 Component.onCompleted: {
26 console.log("request confirm dialog height: " + container.height + " width = " + container.width + " name = " + root.deviceName + " code = " + root.key)
33 horizontalAlignment: Text.AlignHCenter
34 text: qsTr("Pair with %1 with key %2?").arg(root.deviceName).arg(root.key)
35 wrapMode: Text.WordWrap
42 anchors.horizontalCenter: parent.horizontalCenter
48 source: "/usr/share/hfdialer/images/ivi_btn-incomingcall-accept.png"
50 width: root.width / 2 - 20
55 replyRequestConfirmation(true);
60 anchors.centerIn:parent
68 source: "/usr/share/hfdialer/images/ivi_btn-incomingcall-decline.png"
71 width: root.width / 2 - 20
76 replyRequestConfirmation(false);
82 anchors.centerIn:parent