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.
powersync-app/nymea-app/utils/privacypolicyhelper.h
2023-02-20 12:32:29 +01:00

27 lines
556 B
C++

#ifndef PRIVACYPOLICYHELPER_H
#define PRIVACYPOLICYHELPER_H
#include <QObject>
#include <qqml.h>
class PrivacyPolicyHelper : public QObject
{
Q_OBJECT
Q_PROPERTY(int version READ version CONSTANT)
Q_PROPERTY(QString text READ text CONSTANT)
public:
explicit PrivacyPolicyHelper(QObject *parent = nullptr);
static QObject *qmlProvider(QQmlEngine *engine, QJSEngine *scriptEngine);
int version() const;
QString text() const;
private:
QString findFile() const;
int m_version = -1;
};
#endif // PRIVACYPOLICYHELPER_H