diff options
author | Javier <dev.git@javispedro.com> | 2016-06-05 00:51:39 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2016-06-05 00:51:39 +0200 |
commit | 1905841f4008a58932368a7099e370e5758544c4 (patch) | |
tree | 241b95d68b288b2c54ef0df61096ec5b70e8acf5 /gatoaddress.h | |
parent | 365f98a9f973f5ead0886073ebcaa9bf7c5f0f47 (diff) | |
download | libgato-1905841f4008a58932368a7099e370e5758544c4.tar.gz libgato-1905841f4008a58932368a7099e370e5758544c4.zip |
initial attempts to work with paired devices
Diffstat (limited to 'gatoaddress.h')
-rw-r--r-- | gatoaddress.h | 14 |
1 files changed, 11 insertions, 3 deletions
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; |