mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
23 lines
687 B
C++
23 lines
687 B
C++
#ifndef CONFIGIMPORTEXPORT_H
|
|
#define CONFIGIMPORTEXPORT_H
|
|
|
|
#include <db/DBManager.h>
|
|
|
|
#include <QFile>
|
|
#include <QJsonDocument>
|
|
|
|
class ConfigImportExport : public DBManager
|
|
{
|
|
public:
|
|
ConfigImportExport(QObject* parent = nullptr);
|
|
|
|
// TODO: Check naming seConfiguration
|
|
QPair<bool, QStringList> importJson(const QString& configFile);
|
|
bool exportJson(const QString& path = "") const;
|
|
|
|
QPair<bool, QStringList> setConfiguration(const QJsonObject& config);
|
|
QJsonObject getConfiguration(const QList<quint8>& instances = {}, bool addGlobalConfig = true, const QStringList& instanceFilteredTypes = {}, const QStringList& globalFilterTypes = {} ) const;
|
|
};
|
|
|
|
#endif // CONFIGIMPORTEXPORT_H
|