Files
scheincommander/projectloader.h
T

25 lines
453 B
C++
Raw Normal View History

2023-02-20 03:00:30 +01:00
#ifndef PROJECTLOADER_H
#define PROJECTLOADER_H
#include <expected>
#include <vector>
#include <QJsonArray>
2023-02-21 02:23:57 +01:00
#include <QJsonDocument>
2023-02-20 03:00:30 +01:00
#include <QJsonObject>
#include "lightproject.h"
2023-02-21 02:23:57 +01:00
#include "projectloader.h"
2023-02-20 03:00:30 +01:00
namespace ProjectLoader {
2023-02-21 02:23:57 +01:00
std::expected<LightProject, QString> loadProject(const QJsonDocument &json);
2023-02-20 03:00:30 +01:00
2023-02-21 02:23:57 +01:00
std::expected<QJsonDocument, QString> saveProject(const LightProject &val);
2023-02-20 03:00:30 +01:00
} // namespace ProjectLoader
2023-02-21 02:23:57 +01:00
2023-02-20 03:00:30 +01:00
#endif // PROJECTLOADER_H