summaryrefslogtreecommitdiff
path: root/gatoperipheral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gatoperipheral.cpp')
-rw-r--r--gatoperipheral.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gatoperipheral.cpp b/gatoperipheral.cpp
index 50e1bd3..0a1f723 100644
--- a/gatoperipheral.cpp
+++ b/gatoperipheral.cpp
@@ -138,6 +138,12 @@ void GatoPeripheral::parseEIR(quint8 data[], int len)
assert(pos == len);
}
+bool GatoPeripheral::advertisesService(const GatoUUID &uuid) const
+{
+ Q_D(const GatoPeripheral);
+ return d->service_uuids.contains(uuid);
+}
+
void GatoPeripheral::connectPeripheral()
{
Q_D(GatoPeripheral);