Add toHex function to Uuid.

This commit is contained in:
Florian Geyer 2012-05-18 14:40:52 +02:00
parent d218924b4f
commit 4ec9df76cd
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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;