summaryrefslogtreecommitdiffstats
path: root/app/bluetooth
AgeCommit message (Collapse)AuthorFilesLines
2019-04-02settings: bluetooth: qml: cleanup onPoweredChanged slotMatt Ranostay1-7/+9
Move enabling of discovery + discoverablity to the respective slot to avoid race conditions from the adapter powering on Bug-AGL: SPEC-2295 Change-Id: I16c04d7bcd880ef5dcc5352d0da52ce2fe8b2447 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-03-22settings: bluetooth: qml: switch from qml ListModel to libqtappfw providedMatt Ranostay1-164/+18
Switch from using single threaded and incorrect QML processing of ListViews to using models provided from libqtappfw. Also this allows removal of most of the Javascript code that processed the repective lists. Bug-AGL: SPEC-2270 Change-Id: Ib00a2f34938de4c427ec5ee6956ee3e7e3c96959 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-01-16settings: bluetooth: switch from Component.onCompleted power eventhalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy/6.99.47.90.06.99.4Matt Ranostay1-1/+1
Race condition between QML components finishing loadings before libqtappfw access can happen. So use the the onPowerChanged event as before, but to avoid infinite loop of power changes don't changed checked field if already set. Bug-AGL: SPEC-2004 Change-Id: Ie54ca405cab70e1bb909005dce602a56ccb0e8ba Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-01-15settings: bluetooth: fix power button issueMatt Ranostay1-3/+1
Responding to both checkbox clicks and power events will cause an infinite loop in some cases of toggling power state. Bug-AGL: SPEC-2004 Change-Id: I4fb841661472f875a978a5bd314157cfff07328b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-18Fix a couple of UI issuesScott Murray1-4/+5
Tweak the scan button anchoring so it renders reliably, the mix of anchoring and forward referenced values seemed to be causing it to misrender. As well, make it and the detected list visibility dependent on Bluetooth being enabled for consistency. Change-Id: Ib13b206c74234e5618f14277097259b848d62a58 Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit b3dcdb893234873325cdb121c8eda634f97a4c31)
2018-11-28settings: bluetooth: hide paired list when adapter isn't poweredguppy_6.99.2guppy/6.99.26.99.2Matt Ranostay1-0/+1
Bug-AGL: SPEC-1630 Change-Id: Ib730137d46125f5354686b0bf98f419226254e41 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-22settings: add missing deviceConnect to paired listguppy_6.99.1guppy/6.99.16.99.1Matt Ranostay1-0/+1
Need deviceConnect to be set after pairing of device otherwise the "Connect" button will never be displayed. Bug-AGL: SPEC-1630 Change-Id: Ibd6c05e66b28490b650bfb3da7aaebe7aa29ad24 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-11settings: update to bluetooth binding verion 2.0Matt Ranostay1-137/+71
Bug-AGL: SPEC-1630 Change-Id: Ifabb383e2802d6653d6c0e3c5b50020bbe9d9178 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-05-21settings: bluetooth: qml: stop device lists from scrollingflounder_5.99.2flounder_5.99.1flounder/5.99.2flounder/5.99.15.99.25.99.1Matt Ranostay1-5/+0
Both device lists were emitting an layoutChanged() signal on any device addition/update/removal which caused the model to refresh causing it to 'scroll' to the top. This event should only be emitted when the model is being sorted, and hence incorrect in the current call. Bug-AGL: SPEC-1385 Change-Id: I2828ad41e8bf4c9e0c83b62322b9e281e37408eb Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-05-21settings: bluetooth: qml: stop duplicate entries in listsMatt Ranostay1-0/+4
Due to the current subscription model each subscriber causes an discovery_result event to be emitted. So each client must be sure they aren't adding entries more than once. Bug-AGL: SPEC-1385 Change-Id: I125eb33327944407c018b01776ba9bb3e0d4c08f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-04-19settings: bluetooth: switch from qml websockets to libqtappfwMatt Ranostay1-307/+122
Initial support changeover to libqtappfw from qml websocket calls for agl-service-bluetooth service Bug-AGL: SPEC-1385 Change-Id: Iff434c386d19f737b76d6a92969ae131a3de8ebf Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-12-15Update to new color schemeTadao Tanikawa2-184/+74
The color scheme has been changed to new one. Bug-AGL: SPEC-673 Change-Id: I6d8c30d9682b9a267c293dd7bcee7d3828af80b8 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-11-22QML: Bluetooth: fix initial paired devices listeel_4.99.3eel/4.99.34.99.3Matt Ranostay1-1/+1
Paired device count was being set to zero after getting initial list from the bluetooth service. Bug-AGL: SPEC-1123 Change-Id: If4d70e45bcb2b3fcbde3f4ace0d251601e38c157 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-13QML: Bluetooth patch to limit device name lengthLiPengKun1-1/+8
This is a patch to fix the Bluetooth issue that long device name may cover pair button Change-Id: Ida0fd980cf3308be959eb74ea30e11beeffd5453 Signed-off-by: LiPengKun <pengkun.li@jp.alps.com>
2017-09-01qml: change BT layouteel_4.99.1eel/4.99.14.99.1sandbox/kmitsunari/hmi-frameworkLiPengKun1-47/+179
This is change BT discoveried BT device into two list. List 1 : this is a list for paired device. List 2 : this is a list for discoveried device that not paired. Change-Id: I5a24b6278078e267150d2f88e94c4eb32719f52b Signed-off-by: LiPengKun <pengkun.li@jp.alps.com>
2017-08-08qml: bluetooth: update subscription to eventsMatt Ranostay1-53/+4
Update the subscription to bluetooth events to the new more consistent format Bug-AGL: SPEC-819 Change-Id: I4236ca5f018be42d58f474220c418354437721f4 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-12bluetooth: allow detection of bluetooth enabledMatt Ranostay1-0/+10
Bluetooth can now be enabled via connmand dbus service, and needs to detect if already enabled. Change-Id: I279a571b89381579eb05705410210a9266039377 Bug-AGL: SPEC-570 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-12qml: bluetooth: remove Windows/DOS end-of-linesMatt Ranostay1-521/+521
Recent merge of websocket changes introducted MSDOS/Windows end of lines, this patchset removes them with dos2unix. Bug-AGL: SPEC-592 Change-Id: Id16cae4e3cab1da8ed789b0924410c0e4ac7937b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-04-19BT: Update to support WebSocketyidongmiao1-369/+521
modified: app/bluetooth/Bluetooth.qml modified: binding-bluetooth/binding-bluetooth.pro new file: binding-bluetooth/bluetooth-agent.c new file: binding-bluetooth/bluetooth-agent.h modified: binding-bluetooth/bluetooth-api.c modified: binding-bluetooth/bluetooth-api.h modified: binding-bluetooth/bluetooth-manager.c modified: binding-bluetooth/bluetooth-manager.h new file: binding-bluetooth/bluez-client.c new file: binding-bluetooth/bluez-client.h new file: binding-bluetooth/lib_agent.c new file: binding-bluetooth/lib_agent.h new file: binding-bluetooth/lib_bluez.c new file: binding-bluetooth/lib_bluez.h new file: binding-bluetooth/lib_ofono.c new file: binding-bluetooth/lib_ofono.h new file: binding-bluetooth/lib_ofono_modem.c new file: binding-bluetooth/lib_ofono_modem.h new file: binding-bluetooth/ofono-client.c new file: binding-bluetooth/ofono-client.h modified: Bluetooth.qml Change-Id: I18bc7ed86b6759d5b55a2662cf3ebd0d1e81b07f Signed-off-by: yidongmiao <yidong.miao@cn.alps.com> Jira identifier: SPEC-528
2016-12-22Merge "Wifi & Bluetooth: use binding address defined in main.cpp"Jan-Simon Moeller1-6/+1
2016-12-22Merge "Modify poll interval"Jan-Simon Moeller1-1/+1
2016-12-22Modify poll intervalsrimaldia1-1/+1
Change-Id: I2a963667dd1eadb92533746fba829d7fe5916a3d Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-22Wifi & Bluetooth: use binding address defined in main.cppTasuku Suzuki1-6/+1
Change-Id: I37927e3287cc63531e58aedec0fee67eb4331e47 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
2016-12-22Modify UI design of Wifi and Bluetoothsrimaldia1-117/+152
Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-22Revert GUI Wifi and Blouetooth to latest mergeredsrimaldia1-152/+117
Change-Id: I9c8d36e9c4d9068e7c7bcb8834d84dd2cf810874 Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-22Modify UI Design of Wifi and Bluetoothsrimaldia1-117/+152
Change-Id: I9c8d36e9c4d9068e7c7bcb8834d84dd2cf810874 Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-15Modify UI for Bluetooth and Wifisrimaldia1-21/+19
Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-14merge the Settings in CES2017 and bindings from ALPSTasuku Suzuki5-0/+600
Change-Id: I00a7a6c5dae1cd579f91d543b0f5fba4616a633b Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>