From ff9fd605200825322beed8f86df765b70370b9d3 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 10 May 2014 23:56:23 +0200 Subject: bluez5 keeps removing APIs, so switch to our own --- gatouuid.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'gatouuid.h') diff --git a/gatouuid.h b/gatouuid.h index d94d7ae..08d0305 100644 --- a/gatouuid.h +++ b/gatouuid.h @@ -3,8 +3,7 @@ #include #include -#include -#include +#include #include "libgato_global.h" class GatoUUIDPrivate; @@ -44,11 +43,8 @@ inline LIBGATO_EXPORT void qToLittleEndian(gatouint128 src, uchar * #endif } -class LIBGATO_EXPORT GatoUUID +class LIBGATO_EXPORT GatoUUID : public QUuid { - Q_GADGET - Q_ENUMS(GattUuid) - public: enum GattUuid { GattGenericAccessProfile = 0x1800, @@ -78,23 +74,14 @@ public: explicit GatoUUID(gatouint128 uuid); explicit GatoUUID(const QString &uuid); GatoUUID(const GatoUUID &o); + GatoUUID(const QUuid &uuid); ~GatoUUID(); - bool isNull() const; - int minimumSize() const; quint16 toUInt16(bool *ok = 0) const; quint32 toUInt32(bool *ok = 0) const; gatouint128 toUInt128() const; - QString toString() const; - - GatoUUID& operator=(const GatoUUID& o); - friend bool operator==(const GatoUUID &a, const GatoUUID &b); - friend bool operator!=(const GatoUUID &a, const GatoUUID &b); - -private: - QSharedDataPointer d; }; LIBGATO_EXPORT QDebug operator<<(QDebug debug, const GatoUUID &uuid); -- cgit v1.2.3