#include "platformhelpergeneric.h"

PlatformHelperGeneric::PlatformHelperGeneric(QObject *parent) : PlatformHelper(parent)
{

}

void PlatformHelperGeneric::requestPermissions()
{
    emit permissionsRequestFinished();
}

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)
}
