summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartlistener/assets
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartlistener/assets')
-rw-r--r--examples/bluetooth/heartlistener/assets/Button.qml77
-rw-r--r--examples/bluetooth/heartlistener/assets/Point.qml51
-rw-r--r--examples/bluetooth/heartlistener/assets/blue_heart.pngbin7283 -> 0 bytes
-rw-r--r--examples/bluetooth/heartlistener/assets/blue_heart_small.pngbin250 -> 0 bytes
-rw-r--r--examples/bluetooth/heartlistener/assets/busy_dark.pngbin1130 -> 0 bytes
-rw-r--r--examples/bluetooth/heartlistener/assets/dialog.qml61
-rw-r--r--examples/bluetooth/heartlistener/assets/draw.js74
-rw-r--r--examples/bluetooth/heartlistener/assets/home.qml186
-rw-r--r--examples/bluetooth/heartlistener/assets/main.qml84
-rw-r--r--examples/bluetooth/heartlistener/assets/monitor.qml154
-rw-r--r--examples/bluetooth/heartlistener/assets/results.qml291
-rw-r--r--examples/bluetooth/heartlistener/assets/star.pngbin262 -> 0 bytes
12 files changed, 0 insertions, 978 deletions
diff --git a/examples/bluetooth/heartlistener/assets/Button.qml b/examples/bluetooth/heartlistener/assets/Button.qml
deleted file mode 100644
index 51c377b1..00000000
--- a/examples/bluetooth/heartlistener/assets/Button.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id:button
- //color: "#3870BA"
-
- property real buttonWidth: 300
- property real buttonHeight: 80
- property string text: "Button"
-
- signal buttonClick()
- width: click.pressed ? (buttonWidth - 15) : buttonWidth
- height: click.pressed ? (buttonHeight - 15) :buttonHeight
-
- color: click.pressed ? "#3265A7" : "#3870BA"
-
- border.color: "#F0EBED"
- border.width: 5
- radius: 10
-
- Text {
- id: label
- font.pixelSize: 30; font.bold: true
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.fill: parent
- elide: Text.ElideMiddle
- color: "#F0EBED"
- text: button.text
- }
-
- MouseArea {
- id: click
- anchors.fill: parent
- onClicked: buttonClick()
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/Point.qml b/examples/bluetooth/heartlistener/assets/Point.qml
deleted file mode 100644
index 0341d11a..00000000
--- a/examples/bluetooth/heartlistener/assets/Point.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: point
-
- Image {
- width: 10; height: 7
- smooth: true
- source: "blue_heart_small.png"
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/blue_heart.png b/examples/bluetooth/heartlistener/assets/blue_heart.png
deleted file mode 100644
index 997ee699..00000000
--- a/examples/bluetooth/heartlistener/assets/blue_heart.png
+++ /dev/null
Binary files differ
diff --git a/examples/bluetooth/heartlistener/assets/blue_heart_small.png b/examples/bluetooth/heartlistener/assets/blue_heart_small.png
deleted file mode 100644
index 7bd1f981..00000000
--- a/examples/bluetooth/heartlistener/assets/blue_heart_small.png
+++ /dev/null
Binary files differ
diff --git a/examples/bluetooth/heartlistener/assets/busy_dark.png b/examples/bluetooth/heartlistener/assets/busy_dark.png
deleted file mode 100644
index 3a105953..00000000
--- a/examples/bluetooth/heartlistener/assets/busy_dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/bluetooth/heartlistener/assets/dialog.qml b/examples/bluetooth/heartlistener/assets/dialog.qml
deleted file mode 100644
index bcaf299f..00000000
--- a/examples/bluetooth/heartlistener/assets/dialog.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: root
- opacity: 0.8
- color: "#E0DEDF"
- anchors.horizontalCenter: parent.horizontalCenter
-
- property int hr: heartRate.hr
- Text {
- text: heartRate.message
- color: "#3870BA"
-
- }
-
- onHrChanged: {
- if (heartRate.hr > 0) {
- root.destroy()
- }
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/draw.js b/examples/bluetooth/heartlistener/assets/draw.js
deleted file mode 100644
index f884d472..00000000
--- a/examples/bluetooth/heartlistener/assets/draw.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-var component;
-var size = 0;
-var counter = 0;
-var difference = 0;
-
-function start() {
- size = heartRate.measurementsSize();
- difference = (plot.width-topbar.width)/size;
- console.log(size +" "+ plot.width);
- for (var i = 0; i< size; i++) {
- var value = heartRate.measurements(i);
-
- drawIt(value);
- counter++;
- }
-}
-
-function drawIt(value) {
- if (component == null)
- component = Qt.createComponent("Point.qml");
- if (component.status == Component.Ready) {
- var dynamicObject = component.createObject(plot);
- if (dynamicObject == null) {
- console.log("error creating block");
- console.log(component.errorString());
- return false;
- }
- dynamicObject.x = 10+(counter*difference);
- console.log(plot.height)
- dynamicObject.y = plot.height -value;
-
- }
-}
-
diff --git a/examples/bluetooth/heartlistener/assets/home.qml b/examples/bluetooth/heartlistener/assets/home.qml
deleted file mode 100644
index e77081ae..00000000
--- a/examples/bluetooth/heartlistener/assets/home.qml
+++ /dev/null
@@ -1,186 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: screen
- color: "#F0EBED"
- property string message: heartRate.message
- onMessageChanged: {
- if (heartRate.message != "Scanning for devices..." && heartRate.message != "Low Energy device found. Scanning for more...") {
- background.visible = false;
- demoMode.visible = true;
- }
- else {
- demoMode.visible = false;
- background.visible = true;
- }
- }
-
- Rectangle {
- id:select
- width: parent.width
- anchors.top: parent.top
- height: 80
- color: "#F0EBED"
- border.color: "#3870BA"
- border.width: 2
- radius: 10
-
- Text {
- id: selectText
- color: "#3870BA"
- font.pixelSize: 34
- anchors.centerIn: parent
- text: "Select Device"
- }
- }
-
- Rectangle {
- id: spinner
- width: parent.width
- anchors.top: select.bottom
- anchors.bottom: demoMode.top
- visible: false
- color: "#F0EBED"
- z: 100
-
- Rectangle {
- id: inside
- anchors.centerIn: parent
- Image {
- id: background
-
- width:100
- height:100
- anchors.horizontalCenter: parent.horizontalCenter
-
- source: "busy_dark.png"
- fillMode: Image.PreserveAspectFit
- NumberAnimation on rotation { duration: 3000; from:0; to: 360; loops: Animation.Infinite}
- }
-
- Text {
- id: infotext
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: background.bottom
- text: heartRate.message
- color: "#8F8F8F"
- }
- }
- }
-
- Component.onCompleted: {
- heartRate.deviceSearch();
- spinner.visible=true;
- }
-
- ListView {
- id: theListView
- width: parent.width
- onModelChanged: spinner.visible=false
- anchors.top: select.bottom
- anchors.bottom: demoMode.top
- model: heartRate.name
-
- delegate: Rectangle {
- id: box
- height:140
- width: parent.width
- color: "#3870BA"
- border.color: "#F0EBED"
- border.width: 5
- radius: 15
-
- MouseArea {
- anchors.fill: parent
- onPressed: { box.color= "#3265A7"; box.height=110}
- onClicked: {
- heartRate.connectToService(modelData.deviceAddress);
- pageLoader.source="monitor.qml";
- }
- }
-
- Text {
- id: device
- font.pixelSize: 30
- text: modelData.deviceName
- anchors.top: parent.top
- anchors.topMargin: 5
- anchors.horizontalCenter: parent.horizontalCenter
- color: "#F0EBED"
- }
-
- Text {
- id: deviceAddress
- font.pixelSize: 30
- text: modelData.deviceAddress
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 5
- anchors.horizontalCenter: parent.horizontalCenter
- color: "#F0EBED"
- }
- }
- }
-
- Button {
- id:demoMode
- buttonWidth: parent.width
- buttonHeight: 0.1*parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: scanAgain.top
- text: "Run Demo"
- onButtonClick: {
- heartRate.startDemo();
- pageLoader.source="monitor.qml";
- }
- }
-
- Button {
- id:scanAgain
- buttonWidth: parent.width
- buttonHeight: 0.1*parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- text: "Menu"
- onButtonClick: pageLoader.source="main.qml"
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/main.qml b/examples/bluetooth/heartlistener/assets/main.qml
deleted file mode 100644
index 89d9f600..00000000
--- a/examples/bluetooth/heartlistener/assets/main.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 400
- height: 600
- id: begin
-
- Rectangle {
- color: "#F0EBED"
- anchors.fill: parent
- Rectangle {
- id: about
- width: 0.75*parent.width
- height: 0.1*parent.height
- anchors.top: parent.top
- anchors.topMargin: 20
- anchors.horizontalCenter: parent.horizontalCenter
- color: "#F0EBED"
- border.color: "#3870BA"
- border.width: 2
- radius: 10
- Text {
- id: aboutinfo
- anchors.centerIn: parent
- color: "#3870BA"
- text: "Welcome to the Heart Listener Application"
- }
- }
-
- Button {
- id:call
- buttonWidth: 0.75*parent.width
- buttonHeight: 0.15*parent.height
- anchors.centerIn: parent
- text: "Scan for Devices"
- onButtonClick: pageLoader.source="home.qml"
- }
- }
-
- Loader {
- id: pageLoader
- anchors.fill: parent
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/monitor.qml b/examples/bluetooth/heartlistener/assets/monitor.qml
deleted file mode 100644
index 1d74ad84..00000000
--- a/examples/bluetooth/heartlistener/assets/monitor.qml
+++ /dev/null
@@ -1,154 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtQuick.Particles 2.0
-
-Rectangle {
- id: screenMonitor
- color: "#F0EBED"
-
- Button {
- id:menu
- buttonWidth: parent.width
- buttonHeight: 0.1 * parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: parent.top
- text: "Menu"
- onButtonClick: {
- heartRate.disconnectService();
- pageLoader.source="home.qml";
- }
- }
-
- Text {
- id: hrValue
- font.pointSize: 24; font.bold: true
- anchors.top:menu.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 25
-
- color: "#3870BA"
- text: heartRate.hr
- onTextChanged: {
- if (heartRate.hr > 0 && updatei != null && heartRate.numDevices() > 0) {
- updatei.destroy()
- }
- }
- }
-
- Rectangle {
- id: updatei
- width: parent.width
- height: 80
- anchors.bottom: stop.top
-
- color: "#F0EBED"
- border.color: "#3870BA"
- border.width: 2
-
- Text {
- id: logi
- text: heartRate.message
- anchors.centerIn: updatei
- color: "#3870BA"
- }
- }
-
- Image {
- id: background
- width: 300
- height: width
- anchors.centerIn: parent
- source: "blue_heart.png"
- fillMode: Image.PreserveAspectFit
- NumberAnimation on width {
- running: heartRate.hr > 0;
- duration: heartRate.hr/60*250;
- from:300; to: 350;
- loops: Animation.Infinite;
- }
-
- ParticleSystem {
- id: systwo
- anchors.fill: parent
-
- ImageParticle {
- system: systwo
- id: cptwo
- source: "star.png"
- colorVariation: 0.4
- color: "#000000FF"
- }
-
- Emitter {
- //burst on click
- id: burstytwo
- system: systwo
- enabled: true
- x: 160
- y: 150
- emitRate: heartRate.hr*100
- maximumEmitted: 4000
- acceleration: AngleDirection {angleVariation: 360; magnitude: 360; }
- size: 4
- endSize: 8
- sizeVariation: 4
- }
-
-
- }
-
- }
-
- Button {
- id:stop
- buttonWidth: parent.width
- buttonHeight: 0.1*parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- text: "Stop Monitoring"
- onButtonClick: {
- burstytwo.enabled = false;
- heartRate.disconnectService();
- pageLoader.source = "results.qml";
- }
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/results.qml b/examples/bluetooth/heartlistener/assets/results.qml
deleted file mode 100644
index 301762c3..00000000
--- a/examples/bluetooth/heartlistener/assets/results.qml
+++ /dev/null
@@ -1,291 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtBluetooth module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import "draw.js" as DrawGraph
-
-Rectangle {
- id: results
- color: "#F0EBED"
-
- Component.onCompleted: heartRate.obtainResults()
-
- function getTime() {
- var t = heartRate.time;
- var min = Math.floor(t/60);
- var sec = t%60;
- var r = min + " min " + sec + " sec ";
- return r;
- }
-
- function drawGraph() {
- var b = plot.height/200;
- var ctx = canvas1.getContext('2d');
- ctx.beginPath()
- ctx.moveTo(10, plot.height- (b*60))
- var size = heartRate.measurementsSize();
- var difference = (plot.width-topbar.width)/size;
-
- for (var i = 0; i< size; i++) {
- var value = heartRate.measurements(i);
- if (i == 0) {
- ctx.moveTo(10+2, (plot.height- (value*b) + 2));
- ctx.rect((10 + i*difference), (plot.height- (value*b)), 4, 4);
-
- }
- else {
- ctx.lineTo((10+2 + i*difference), (plot.height- (value*b) + 2));
- ctx.rect((10 + i*difference), (plot.height- (value*b)), 4, 4);
- }
-
- }
- ctx.fillStyle = "#3870BA"
- ctx.fill()
- ctx.strokeStyle = "#3870BA"
- ctx.stroke()
- ctx.closePath()
- }
-
- Rectangle {
- id: res
- width: parent.width
- anchors.top: parent.top
- height: 80
- color: "#F0EBED"
- border.color: "#3870BA"
- border.width: 2
- radius: 10
- Text {
- id: restText
- color: "#3870BA"
- font.pixelSize: 34
- anchors.centerIn: parent
- text: "Results"
- }
- }
-
- Text {
- id: topbar
- text: "200"
- anchors.left: parent.left
- anchors.top: res.bottom
- anchors.rightMargin: 4
- color: "#3870BA"
- z: 50
- }
-
- Rectangle {
- id: level
- anchors.left: topbar.right
-
- anchors.top: res.bottom
- height: ((results.height -(res.height + menuLast.height + start.height ))/2)
- width: 3
- color: "#3870BA"
- }
-
- Text {
- id: middlebar
- anchors.verticalCenter: level.verticalCenter
- anchors.left: parent.left
- text: "100"
- color: "#3870BA"
- z: 50
- }
-
- Rectangle{
- id: downlevel
- anchors.bottom: cover.top
- width: parent.width
- anchors.left: level.right
- height: 3
- color: "#3870BA"
- z: 50
- }
-
- Rectangle {
- id: plot
- anchors.left: level.right
- anchors.leftMargin: 15
- width: results.width
- height: ((parent.height-(res.height+menuLast.height+start.height))/2)
-
- anchors.top: res.bottom
- color: "#F0EBED"
- Canvas {
- id: canvas1
- anchors.fill: parent
- z: 150
- onPaint: drawGraph()
- }
- }
-
- Rectangle {
- id: cover
- anchors.top: plot.bottom
- anchors.bottom: menuLast.top
- width: parent.width
- height: ((parent.height-(res.height+menuLast.height+start.height))/2)
- color: "#F0EBED"
- radius: 10
- border.color: "#3870BA"
- border.width: 2
-
- Flickable {
- id: scroll
- anchors.fill: parent
- anchors.margins: 5
- clip: true
- contentWidth: parent.width
- contentHeight: stresult.height
-
- Rectangle {
- id: stresult
- width: parent.width
- height: (results.height - (res.height + menuLast.height + start.height - 100))
- color: "#F0EBED"
- radius: 10
-
- Text {
- id: averageHR
- font.pixelSize: 30;
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.top: parent.top
-
- color: "#3870BA"
- text: "Average Heart Rate"
- }
-
- Text {
- id: averageHRt
- font.pixelSize: 40; font.bold: true
- anchors.top: averageHR.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: heartRate.average
- }
-
- Text {
- id: time
- font.pixelSize: 30;
- anchors.top: averageHRt.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: "Seconds measured:"
- }
-
- Text {
- id: timet
- font.pixelSize: 40; font.bold: true
- anchors.top: time.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: getTime()
- }
- Text {
- id: maxi
- font.pixelSize: 30;
- anchors.top: timet.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 20
- color: "#3870BA"
- text: " Max || Min "
- }
-
- Text {
- id: mini
- font.pixelSize: 40; font.bold: true
- anchors.top:maxi.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: " " + heartRate.maxHR + " || " + heartRate.minHR
- }
-
- Text {
- id: calories
- font.pixelSize: 30;
- anchors.top: mini.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: " Calories "
- }
-
- Text {
- id: caloriestext
- font.pixelSize: 40; font.bold: true
- anchors.top:calories.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.topMargin: 10
- color: "#3870BA"
- text: heartRate.calories.toFixed(3)
- }
- }
- }
- }
-
- Button {
- id:menuLast
- buttonWidth: parent.width
- buttonHeight: 0.1*parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: start.top
- text: "Menu"
- onButtonClick: { pageLoader.source="main.qml"}
- }
-
- Button {
- id:start
- buttonWidth: parent.width
- buttonHeight: 0.1*parent.height
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- text: "Start Monitoring"
- onButtonClick: {
- heartRate.connectToService(heartRate.deviceAddress());
- pageLoader.source="monitor.qml";
- }
- }
-}
diff --git a/examples/bluetooth/heartlistener/assets/star.png b/examples/bluetooth/heartlistener/assets/star.png
deleted file mode 100644
index defbde53..00000000
--- a/examples/bluetooth/heartlistener/assets/star.png
+++ /dev/null
Binary files differ