diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-12-07 01:51:59 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-12-07 01:51:59 +0100 |
commit | 55496b91d2b144c5b8aafd20a8c8332aee4607ab (patch) | |
tree | 877b7ae6e8ea63000272270e54e665ecdb8d80f3 /gatoperipheral.cpp | |
parent | a7161d92f965848049dbb2eaa80cce0aa178c0ed (diff) | |
download | libgato-55496b91d2b144c5b8aafd20a8c8332aee4607ab.tar.gz libgato-55496b91d2b144c5b8aafd20a8c8332aee4607ab.zip |
add a method to retrieve a known device from a manager
Diffstat (limited to 'gatoperipheral.cpp')
-rw-r--r-- | gatoperipheral.cpp | 6 |
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); |