forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread_files.h
14 lines (11 loc) · 784 Bytes
/
read_files.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef READ_FILES_H
#define READ_FILES_H
#include <sensor.h>
QJsonDocument readButtonMapJson(const QString &path);
bool checkRootLevelObjectsJson(const QJsonDocument &buttonMaps, const QStringList &requiredObjects);
QMap<QString, quint16> loadButtonMapClustersJson(const QJsonDocument &buttonMaps);
QMap<QString, QMap<QString, quint16>> loadButtonMapCommadsJson(const QJsonDocument &buttonMaps);
QMap<QString, QString> loadButtonMapModelIdsJson(const QJsonDocument &buttonMaps);
QMap<QString, std::vector<Sensor::ButtonMap>> loadButtonMapsJson(const QJsonDocument &buttonMaps, const QMap<QString, quint16> &btnMapClusters,
const QMap<QString, QMap<QString, quint16>> &btnMapClusterCommands);
#endif // READ_FILES_H