mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +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);
|
||||
}
|
||||
|
||||
QString CIdentifier::toUuidString() const
|
||||
{
|
||||
return toUuid().toString();
|
||||
}
|
||||
|
||||
QByteArray CIdentifier::getMachineId() const
|
||||
{
|
||||
return QByteArray::fromBase64(m_machineIdBase64.toLocal8Bit());
|
||||
|
||||
@@ -61,6 +61,9 @@ namespace BlackMisc
|
||||
//! Produces a UUID generated from the identifier.
|
||||
QUuid toUuid() const;
|
||||
|
||||
//! UUID string
|
||||
QString toUuidString() const;
|
||||
|
||||
//! Name
|
||||
QString getName() const { return m_name; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user