diff --git a/src/core/Uuid.cpp b/src/core/Uuid.cpp index 871c8f9c7..7b37490f6 100644 --- a/src/core/Uuid.cpp +++ b/src/core/Uuid.cpp @@ -44,6 +44,11 @@ QString Uuid::toBase64() const return m_data.toBase64(); } +QString Uuid::toHex() const +{ + return m_data.toHex(); +} + QByteArray Uuid::toByteArray() const { return m_data; diff --git a/src/core/Uuid.h b/src/core/Uuid.h index 055bddb81..ddcd39c80 100644 --- a/src/core/Uuid.h +++ b/src/core/Uuid.h @@ -28,7 +28,9 @@ public: explicit Uuid(const QByteArray& data); static Uuid random(); QString toBase64() const; + QString toHex() const; QByteArray toByteArray() const; + bool isNull() const; Uuid& operator=(const Uuid& other); bool operator==(const Uuid& other) const;