2023-02-20 03:00:30 +01:00
|
|
|
#ifndef PROJECTLOADER_H
|
|
|
|
|
#define PROJECTLOADER_H
|
|
|
|
|
|
|
|
|
|
#include <expected>
|
|
|
|
|
|
2023-02-21 02:23:57 +01:00
|
|
|
#include <QJsonDocument>
|
2023-02-27 02:21:37 +01:00
|
|
|
#include <QString>
|
2023-02-20 03:00:30 +01:00
|
|
|
|
|
|
|
|
#include "lightproject.h"
|
|
|
|
|
|
|
|
|
|
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
|