27 lines
431 B
C++
27 lines
431 B
C++
//
|
|
// Created by selim on 5/6/23.
|
|
//
|
|
|
|
#ifndef AUTOCATQT_SETTINGS_H
|
|
#define AUTOCATQT_SETTINGS_H
|
|
|
|
#include "../models/User.h"
|
|
#include <filesystem>
|
|
|
|
namespace fs = std::filesystem;
|
|
|
|
class Settings {
|
|
private:
|
|
fs::path _dataPath;
|
|
|
|
public:
|
|
static Settings instance();
|
|
Settings();
|
|
static fs::path getDataPath();
|
|
|
|
[[nodiscard]] User user() const;
|
|
void setUser(const User& user);
|
|
};
|
|
|
|
#endif //AUTOCATQT_SETTINGS_H
|