mirror of https://github.com/nymea/nymea.git
24 lines
470 B
C++
24 lines
470 B
C++
#ifndef APPDATAHANDLER_H
|
|
#define APPDATAHANDLER_H
|
|
|
|
#include <QObject>
|
|
#include "jsonrpc/jsonhandler.h"
|
|
|
|
class AppDataHandler : public JsonHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AppDataHandler(QObject *parent = nullptr);
|
|
|
|
QString name() const override;
|
|
|
|
Q_INVOKABLE JsonReply *Store(const QVariantMap ¶ms);
|
|
Q_INVOKABLE JsonReply *Load(const QVariantMap ¶ms);
|
|
|
|
signals:
|
|
void Changed(const QVariantMap ¶ms);
|
|
|
|
};
|
|
|
|
#endif // APPDATAHANDLER_H
|