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.
2019-02-06 03:00:43 +01:00

51 lines
938 B
C++

#include "platformhelpergeneric.h"
PlatformHelperGeneric::PlatformHelperGeneric(QObject *parent) : PlatformHelper(parent)
{
}
void PlatformHelperGeneric::requestPermissions()
{
emit permissionsRequestFinished();
}
void PlatformHelperGeneric::hideSplashScreen()
{
}
bool PlatformHelperGeneric::hasPermissions() const
{
return true;
}
QString PlatformHelperGeneric::machineHostname() const
{
return QSysInfo::machineHostName();
}
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();
}
void PlatformHelperGeneric::vibrate(PlatformHelper::HapticsFeedback feedbyckType)
{
Q_UNUSED(feedbyckType)
}