Almost done with updating metadata of song, just need to handle records that have no related records associated with them
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
#define SONGMANAGER_H_
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include "dto/SongDto.hpp"
|
||||
#include "model/Models.h"
|
||||
#include "type/SongChanged.h"
|
||||
|
||||
namespace manager
|
||||
{
|
||||
@@ -17,6 +19,7 @@ namespace manager
|
||||
SongManager(std::string&);
|
||||
SongManager(const model::BinaryPath&);
|
||||
|
||||
|
||||
bool didSongChange(const model::Song&, const model::Song&);
|
||||
bool requiresFilesystemChange(const model::Song&, const model::Song&);
|
||||
|
||||
@@ -28,9 +31,17 @@ namespace manager
|
||||
|
||||
static void printSong(const model::Song&);
|
||||
private:
|
||||
std::map<type::SongChanged, bool> changesInSong(const model::Song&, const model::Song&);
|
||||
|
||||
void assignMiscId(model::Song&, const model::Song&);
|
||||
void assignMiscFields(std::map<type::SongChanged, bool>&, model::Song&,
|
||||
const model::Song&);
|
||||
void saveSongTemp(model::Song&);
|
||||
void saveMisc(model::Song&);
|
||||
void deleteMisc(const model::Song&);
|
||||
void updateMisc(const std::map<type::SongChanged, bool>&,
|
||||
model::Song&, const model::Song&);
|
||||
void modifySongOnFilesystem(model::Song&, const model::Song&);
|
||||
|
||||
model::BinaryPath m_bConf;
|
||||
std::string exe_path;
|
||||
|
||||
Reference in New Issue
Block a user