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-core/hive/libhive/jsonplugin/devicejsonplugin.h
2013-08-31 10:44:35 +02:00

33 lines
668 B
C++

#ifndef DEVICEJSONPLUGIN_H
#define DEVICEJSONPLUGIN_H
#include <QObject>
#include <QVariant>
#include <jsonplugin/jsonplugin.h>
#include <devicemanager.h>
class DeviceJsonPlugin : public JsonPlugin
{
public:
explicit DeviceJsonPlugin(QObject *parent = 0);
QString deviceName();
QByteArray process(const QVariantMap &command, const QVariantMap &parameters);
private:
DeviceManager *m_deviceManager;
void add(QVariantMap parameters);
void remove();
void editValue(QString value, QVariant key);
void getAll();
QByteArray formatResponse();
QByteArray formatErrorResponse();
signals:
};
#endif // DEVICEJSONPLUGIN_H