summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qlowenergyservice.cpp')
-rw-r--r--src/bluetooth/qlowenergyservice.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/bluetooth/qlowenergyservice.cpp b/src/bluetooth/qlowenergyservice.cpp
index 0bc9dc55..725c82e9 100644
--- a/src/bluetooth/qlowenergyservice.cpp
+++ b/src/bluetooth/qlowenergyservice.cpp
@@ -92,11 +92,23 @@ QLowEnergyService::~QLowEnergyService()
{
}
-QList<QSharedPointer<QLowEnergyService> > QLowEnergyService::includedServices() const
+/*!
+ Returns the uuids of all services which are included by the
+ current service.
+
+ It is possible that an included service contains yet another service. Such
+ second level includes have to be obtained via their relevant first level
+ QLowEnergyService instance. Technically it is possible that this can create
+ a circular dependency.
+
+ \l {QLowEnergyController::createServiceObject} should be used to obtain
+ service instances for each of the uuids.
+
+ \sa createServiceObject()
+ */
+QList<QBluetoothUuid> QLowEnergyService::includedServices() const
{
- QList<QSharedPointer<QLowEnergyService > > results;
- //TODO implement secondary service support
- return results;
+ return d_ptr->includedServices;
}
QLowEnergyService::ServiceState QLowEnergyService::state() const