进度更新

This commit is contained in:
RigoLigo
2021-07-02 20:09:45 +08:00
parent 8579e901d4
commit 9c080f8efb
29 changed files with 604 additions and 67 deletions

20
inc/telemetry/collectid.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <QObject>
#include <QFile>
namespace SpkTelemetry
{
void FunCollectId()
{
#if !defined(NDEBUG) || !defined(SPARK_FORCE_TELEMETRY) // Debug builds shouldn't transmit telemetry data unless asked for
return;
#else
QFile idFile("/etc/machine-id");
if(!idFile.open(QFile::ReadOnly))
return;
auto machineId = idFile.readAll();
#endif
}
}