mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-28 22:01:12 +00:00
55ace147bc
* initial development * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * pokemon * pokemon * pokemon * pokemon * pokemon * pokemon * improvements * improvements * ci/cd * ci/cd * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements --------- Co-authored-by: sdine <sdine@sdine.com>
27 lines
611 B
C++
27 lines
611 B
C++
#pragma once
|
|
|
|
// Configuration: matches the persisted `config.json` schema used by this app.
|
|
//
|
|
// { "dataStorage": "/abs/path", "defaultGame": "Magic" }
|
|
|
|
#include "ccm/domain/Enums.hpp"
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include <string>
|
|
|
|
namespace ccm {
|
|
|
|
struct Configuration {
|
|
std::string dataStorage;
|
|
Game defaultGame{Game::Magic};
|
|
Theme theme{Theme::Light};
|
|
|
|
friend bool operator==(const Configuration&, const Configuration&) = default;
|
|
};
|
|
|
|
void to_json(nlohmann::json& j, const Configuration& c);
|
|
void from_json(const nlohmann::json& j, Configuration& c);
|
|
|
|
} // namespace ccm
|