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/pushnotifications.h
2018-09-19 00:30:34 +02:00

30 lines
688 B
C++

#ifndef PUSHNOTIFICATIONS_H
#define PUSHNOTIFICATIONS_H
#include <QObject>
#include <QQmlEngine>
class PushNotifications : public QObject
{
Q_OBJECT
public:
explicit PushNotifications(QObject *parent = nullptr);
static QObject* pushNotificationsProvider(QQmlEngine *engine, QJSEngine *scriptEngine);
static PushNotifications* instance();
QString apnsRegistrationToken() const;
void setAPNSRegistrationToken(const QString &apnsRegistrationToken);
signals:
void gcmRegistrationTokenChanged();
void apnsRegistrationTokenChanged();
void registeredChanged();
private:
QString m_gcmToken;
QString m_apnsToken;
};
#endif // PUSHNOTIFICATIONS_H