From 55496b91d2b144c5b8aafd20a8c8332aee4607ab Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 7 Dec 2013 01:51:59 +0100 Subject: add a method to retrieve a known device from a manager --- gatoperipheral.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gatoperipheral.cpp') 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); -- cgit v1.2.3