This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-09-19 13:03:46 +02:00

36 lines
671 B
C++

#include "platformhelpergeneric.h"
PlatformHelperGeneric::PlatformHelperGeneric(QObject *parent) : PlatformHelper(parent)
{
}
void PlatformHelperGeneric::requestPermissions()
{
emit permissionsRequestFinished();
}
bool PlatformHelperGeneric::hasPermissions() const
{
return true;
}
QString PlatformHelperGeneric::deviceSerial() const
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
return QSysInfo::machineUniqueId();
#else
return "1234567890";
#endif
}
QString PlatformHelperGeneric::deviceModel() const
{
return QSysInfo::prettyProductName();
}
QString PlatformHelperGeneric::deviceManufacturer() const
{
return QSysInfo::productType();
}