summaryrefslogtreecommitdiffstats
path: root/app/bluetooth
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-12-16 16:49:22 -0500
committerScott Murray <scott.murray@konsulko.com>2021-12-16 16:53:08 -0500
commit8b8c003e0be89baef3715c7f905ba32213bdb853 (patch)
tree143ecba776377a86527caaf2750a66fd22160db1 /app/bluetooth
parentff0e7f9777118469203fe48663f4226d82ecc58b (diff)
Update for app framework removal
Changes: - Remove the autobuild scripts and config.xml used by the app framework widget build. - Update the qmake files to just build a "settings" binary and install it into /usr/bin by default. - Remove the code in main.cpp that handled reading the WebSocket command-line arguments and passing them to binding related code. - Tweak the Bluetooth QML to call into the new start call in the libqtappfw-bt Bluetooth object that replaces the previous WebSocket onConnected hook. - Remove the voice related code as it is not likely to be re-enabled anytime soon. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I8d3272b62aa403a71adadd26c545c1ed33281e5f
Diffstat (limited to 'app/bluetooth')
-rw-r--r--app/bluetooth/Bluetooth.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml
index b2b3308..c1b2aa2 100644
--- a/app/bluetooth/Bluetooth.qml
+++ b/app/bluetooth/Bluetooth.qml
@@ -17,7 +17,6 @@
import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
-import QtWebSockets 1.0
import '..'
SettingPage {
@@ -27,13 +26,20 @@ SettingPage {
checkable: true
readonly property bool isBluetooth: true
+ Component.onCompleted : {
+ bluetooth.start()
+ }
+
Connections {
target: bluetooth
onRequestConfirmationEvent: {
- bluetooth.send_confirmation(data.pincode)
+ // If a dialog were to be display to confirm the PIN it
+ // could be triggered here.
+ bluetooth.send_confirmation(pincode)
}
onPowerChanged: {
+ console.log("onPowerChanged - state ", state)
if (state) {
bluetooth.start_discovery()
bluetooth.discoverable = true;