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
12 property string deviceName
13 property string address
14 property string icon: ""
15 property string alias: ""
16 property string dbuspath: ""
17 property variant uuids: []
19 property int containerHeight: 80
20 height: containerHeight
27 onModemOnlineChanged: {
29 //If the modem gets powered down for any reason, attempt to power it again to maintain connection
30 if (!adapter.modemOnline)
32 mainText.color = "grey"
33 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list-inactive.png"
37 mainText.color = "white"
38 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list.png"
44 id: availableBluetoothItem
46 source: !adapter.modemOnline? "/usr/share/hfdialer/images/ivi_btn-list-inactive.png" : availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list.png"
47 anchors {fill: parent; leftMargin: 8; rightMargin: 8; topMargin: 8}
54 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list.png"
58 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list-inactive.png"
62 adapter.modemOnline = true
69 anchors {left: parent.left; top: parent.top; bottom: parent.bottom; leftMargin: 15}
70 width: parent.width * 0.75
72 verticalAlignment: Text.AlignVCenter
73 height: availableBluetoothItem.containerHeight
74 font.pixelSize: parent.height / 2
77 color: !adapter.modemOnline? "grey" : "white"
79 elide: Text.ElideRight
84 source: "/usr/share/hfdialer/images/ivi_icon-list-delete.png"
85 anchors { left: mainText.right; right: parent.right; top: parent.top; bottom: parent.bottom}
92 closeButton.source = "/usr/share/hfdialer/images/ivi_icon-list-delete-active.png"
96 closeButton.source = "/usr/share/hfdialer/images/ivi_icon-list-delete.png"
100 console.log("CLOSE BUTTON CLICKED")