MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / readPlatformId

Function readPlatformId

app/src/Licensing/MachineID.cpp:190–209  ·  view source on GitHub ↗

* @brief Gathers the raw, platform-specific machine identifier and OS label. */

Source from the content-addressed store, hash-verified

188 * @brief Gathers the raw, platform-specific machine identifier and OS label.
189 */
190static 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

Callers 1

readInformationMethod · 0.85

Calls 4

readLinuxIdFunction · 0.85
readMacIdFunction · 0.85
readWindowsIdFunction · 0.85
readBsdIdFunction · 0.85

Tested by

no test coverage detected