diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-04-08 16:56:22 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-11-05 18:34:07 +0000 |
commit | 16fba4a28f119f87bbdad3f1e07b3df5b18953d2 (patch) | |
tree | 6e74ecd7776bc8b21b2e8a44d0132b41d28c4a6b /src/corelib/global/qsysinfo.h | |
parent | dfbf5a7779d103ad31b0a06e6951b183f2355be6 (diff) |
QSysInfo: add a function that returns a somewhat permanent unique ID
We can use the D-Bus / systemd machine-id file (which is a UUID without
the dashes) on systems with D-Bus. On Windows, there's a value in the
registry that is filled when Windows is installed, like on Linux. For
BSD systems, the kernel has a UUID we can use too, so extract that.
Task-number: QTBUG-63425
Change-Id: I27eaacb532114dd188c4ffff13d32f2e3c1d74bb
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/global/qsysinfo.h')
-rw-r--r-- | src/corelib/global/qsysinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qsysinfo.h b/src/corelib/global/qsysinfo.h index 6b73a17dc5..1415dc8cd5 100644 --- a/src/corelib/global/qsysinfo.h +++ b/src/corelib/global/qsysinfo.h @@ -240,6 +240,7 @@ QT_WARNING_POP static QString prettyProductName(); static QString machineHostName(); + static QByteArray machineUniqueId(); }; #undef QT_SYSINFO_DEPRECATED_X |