* @brief Gathers the raw, platform-specific machine identifier and OS label. */
| 188 | * @brief Gathers the raw, platform-specific machine identifier and OS label. |
| 189 | */ |
| 190 | static QString readPlatformId(QString& os, bool& complete) |
| 191 | { |
| 192 | #if defined(Q_OS_LINUX) |
| 193 | os = QStringLiteral("Linux"); |
| 194 | return readLinuxId(complete); |
| 195 | #elif defined(Q_OS_MAC) |
| 196 | os = QStringLiteral("macOS"); |
| 197 | return readMacId(complete); |
| 198 | #elif defined(Q_OS_WIN) |
| 199 | os = QStringLiteral("Windows"); |
| 200 | return readWindowsId(complete); |
| 201 | #elif defined(Q_OS_BSD) |
| 202 | os = QStringLiteral("BSD"); |
| 203 | return readBsdId(complete); |
| 204 | #else |
| 205 | os = QStringLiteral("Unknown"); |
| 206 | complete = false; |
| 207 | return QString(); |
| 208 | #endif |
| 209 | } |
| 210 | |
| 211 | //-------------------------------------------------------------------------------------------------- |
| 212 | // Constructor & singleton access functions |
no test coverage detected