summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-07-10 14:32:42 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-16 08:28:44 +0200
commit8bf7e9986e359df46bb351dfb76e4140d9b04da7 (patch)
tree0c55a5ddb5e258d34b853f9880cb48b4d2557156 /src
parentda06842d9382147ba8ea3cb77928c75ca7721a63 (diff)
Port HeartRateListener Example to new API.
Change-Id: If3af869a8e5d380592d24b7482ff8eb34a11e6a0 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qlowenergycharacteristic.h1
-rw-r--r--src/bluetooth/qlowenergycontrollernew.h1
-rw-r--r--src/bluetooth/qlowenergyservice.h2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycharacteristic.h b/src/bluetooth/qlowenergycharacteristic.h
index 65f59c7a..51cb70e6 100644
--- a/src/bluetooth/qlowenergycharacteristic.h
+++ b/src/bluetooth/qlowenergycharacteristic.h
@@ -87,6 +87,7 @@ public:
QLowEnergyCharacteristic::PropertyTypes properties() const;
QLowEnergyHandle handle() const;
+ // TODO: Simplify obtaining descriptor (e.g. via uuid)
QList<QLowEnergyDescriptor> descriptors() const;
bool isValid() const;
diff --git a/src/bluetooth/qlowenergycontrollernew.h b/src/bluetooth/qlowenergycontrollernew.h
index 63e81aac..75e5fa73 100644
--- a/src/bluetooth/qlowenergycontrollernew.h
+++ b/src/bluetooth/qlowenergycontrollernew.h
@@ -84,6 +84,7 @@ public:
void connectToDevice();
void disconnectFromDevice();
+ // TODO add a way of detecting whether discoverDetails() as already called
void discoverServices();
QList<QBluetoothUuid> services() const;
QLowEnergyService *createServiceObject(
diff --git a/src/bluetooth/qlowenergyservice.h b/src/bluetooth/qlowenergyservice.h
index 52ec170f..1250e3a7 100644
--- a/src/bluetooth/qlowenergyservice.h
+++ b/src/bluetooth/qlowenergyservice.h
@@ -79,7 +79,7 @@ public:
QLowEnergyService::ServiceType type() const;
QLowEnergyService::ServiceState state() const;
-
+ // TODO: Simplify obtaining characteristic (e.g. via uuid)
QList<QLowEnergyCharacteristic> characteristics() const;
QBluetoothUuid serviceUuid() const;
QString serviceName() const;