mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 10:26:03 +08:00
Ref T160, UUID as string utility function
This commit is contained in:
@@ -62,6 +62,11 @@ namespace BlackMisc
|
|||||||
return QUuid::createUuidV5(ns, baseData);
|
return QUuid::createUuidV5(ns, baseData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CIdentifier::toUuidString() const
|
||||||
|
{
|
||||||
|
return toUuid().toString();
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray CIdentifier::getMachineId() const
|
QByteArray CIdentifier::getMachineId() const
|
||||||
{
|
{
|
||||||
return QByteArray::fromBase64(m_machineIdBase64.toLocal8Bit());
|
return QByteArray::fromBase64(m_machineIdBase64.toLocal8Bit());
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ namespace BlackMisc
|
|||||||
//! Produces a UUID generated from the identifier.
|
//! Produces a UUID generated from the identifier.
|
||||||
QUuid toUuid() const;
|
QUuid toUuid() const;
|
||||||
|
|
||||||
|
//! UUID string
|
||||||
|
QString toUuidString() const;
|
||||||
|
|
||||||
//! Name
|
//! Name
|
||||||
QString getName() const { return m_name; }
|
QString getName() const { return m_name; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user