From 1905841f4008a58932368a7099e370e5758544c4 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 5 Jun 2016 00:51:39 +0200 Subject: initial attempts to work with paired devices --- gatoaddress.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gatoaddress.h') diff --git a/gatoaddress.h b/gatoaddress.h index 9b551e7..b64fea9 100644 --- a/gatoaddress.h +++ b/gatoaddress.h @@ -10,16 +10,24 @@ class GatoAddressPrivate; class LIBGATO_EXPORT GatoAddress { public: + enum Type { + TypeNull, + TypeBREDR, + TypeLEPublic, + TypeLERandom + }; + GatoAddress(); - explicit GatoAddress(quint8 addr[]); - explicit GatoAddress(quint64 addr); - explicit GatoAddress(const QString &addr); + explicit GatoAddress(quint8 addr[], Type = TypeLEPublic); + explicit GatoAddress(quint64 addr, Type = TypeLEPublic); + explicit GatoAddress(const QString &addr, Type = TypeLEPublic); GatoAddress(const GatoAddress& o); ~GatoAddress(); GatoAddress& operator=(const GatoAddress& o); bool isNull() const; + Type type() const; void toUInt8Array(quint8 addr[]) const; quint64 toUInt64() const; -- cgit v1.2.3