This commit is contained in:
@@ -10,10 +10,12 @@
|
||||
|
||||
namespace lm {
|
||||
|
||||
class Database;
|
||||
|
||||
class StateRepository
|
||||
{
|
||||
public:
|
||||
explicit StateRepository(std::filesystem::path data_path);
|
||||
StateRepository(std::filesystem::path data_path, Database& db);
|
||||
|
||||
AppState& app() { return app_; }
|
||||
const AppState& app() const { return app_; }
|
||||
@@ -30,6 +32,7 @@ public:
|
||||
|
||||
private:
|
||||
AppState app_;
|
||||
Database& db_;
|
||||
|
||||
std::filesystem::path modelsDir() const;
|
||||
std::filesystem::path profileFilePath(const std::string& id) const;
|
||||
|
||||
Reference in New Issue
Block a user