Able to save and retrieve records (Artist, Album, Genre, etc.)
This commit is contained in:
@@ -10,7 +10,10 @@ namespace Manager
|
||||
public:
|
||||
albumManager(const Model::BinaryPath&);
|
||||
|
||||
void saveAlbum(const Model::Song&);
|
||||
Model::Album retrieveAlbum(Model::Album&);
|
||||
Model::Album saveAlbum(const Model::Song&);
|
||||
|
||||
static void printAlbum(const Model::Album&);
|
||||
private:
|
||||
Model::BinaryPath m_bConf;
|
||||
};
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace Manager
|
||||
{
|
||||
public:
|
||||
artistManager(const Model::BinaryPath&);
|
||||
|
||||
Model::Artist retrieveArtist(Model::Artist&);
|
||||
Model::Artist saveArtist(const Model::Song&);
|
||||
|
||||
static void printArtist(const Model::Artist&);
|
||||
private:
|
||||
Model::BinaryPath m_bConf;
|
||||
};
|
||||
|
||||
@@ -18,11 +18,11 @@ namespace Manager
|
||||
static std::string configPath(const Model::BinaryPath&);
|
||||
static std::string contentOfPath(const std::string&);
|
||||
|
||||
static nlohmann::json credentialConfigContent(const std::string&);
|
||||
//static nlohmann::json credentialConfigContent(const std::string&);
|
||||
static nlohmann::json credentialConfigContent(const Model::BinaryPath&);
|
||||
static nlohmann::json databaseConfigContent(const std::string&);
|
||||
//static nlohmann::json databaseConfigContent(const std::string&);
|
||||
static nlohmann::json databaseConfigContent(const Model::BinaryPath&);
|
||||
static nlohmann::json pathConfigContent(const std::string&);
|
||||
//static nlohmann::json pathConfigContent(const std::string&);
|
||||
static nlohmann::json pathConfigContent(const Model::BinaryPath&);
|
||||
|
||||
void delete_cover_art_file(const std::string&, const std::string&);
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace Manager
|
||||
{
|
||||
public:
|
||||
genreManager(const Model::BinaryPath&);
|
||||
|
||||
Model::Genre retrieveGenre(Model::Genre&);
|
||||
Model::Genre saveGenre(const Model::Song&);
|
||||
|
||||
static void printGenre(const Model::Genre&);
|
||||
private:
|
||||
Model::BinaryPath m_bConf;
|
||||
};
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace Manager
|
||||
{
|
||||
public:
|
||||
yearManager(const Model::BinaryPath&);
|
||||
|
||||
Model::Year retrieveYear(Model::Year&);
|
||||
Model::Year saveYear(const Model::Song&);
|
||||
|
||||
static void printYear(const Model::Year&);
|
||||
private:
|
||||
Model::BinaryPath m_bConf;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user