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-14 16:48:44 +01:00

33 lines
838 B
C++

#ifndef PLATFORMHELPERANDROID_H
#define PLATFORMHELPERANDROID_H
#include <QObject>
#include "platformhelper.h"
#include <QtAndroid>
class PlatformHelperAndroid : public PlatformHelper
{
Q_OBJECT
public:
explicit PlatformHelperAndroid(QObject *parent = nullptr);
Q_INVOKABLE void requestPermissions() override;
Q_INVOKABLE void hideSplashScreen() override;
bool hasPermissions() const override;
QString machineHostname() const override;
QString deviceSerial() const override;
QString device() const override;
QString deviceModel() const override;
QString deviceManufacturer() const override;
Q_INVOKABLE void vibrate(HapticsFeedback feedbackType) override;
private:
static void permissionRequestFinished(const QtAndroid::PermissionResultMap &);
};
#endif // PLATFORMHELPERANDROID_H