finished updating song functionality
This commit is contained in:
@@ -14,15 +14,16 @@ namespace manager
|
||||
CoverArtManager(const std::string&);
|
||||
CoverArtManager(const model::BinaryPath& bConf);
|
||||
|
||||
model::Cover saveCover(const model::Song&, std::string&,
|
||||
const std::string&);
|
||||
model::Cover saveCover(const model::Song&);
|
||||
|
||||
std::pair<bool, std::string> defaultCover(const model::Cover&);
|
||||
|
||||
void deleteCover(const model::Song&);
|
||||
void updateCover(const model::Song&);
|
||||
void updateCover(const model::Song&, const model::Song&);
|
||||
void updateCoverRecord(const model::Song&);
|
||||
private:
|
||||
std::string createImagePath(const model::Song&);
|
||||
|
||||
model::BinaryPath m_bConf;
|
||||
std::string path;
|
||||
};
|
||||
|
||||
@@ -33,12 +33,15 @@ namespace manager
|
||||
private:
|
||||
std::map<type::SongChanged, bool> changesInSong(const model::Song&, const model::Song&);
|
||||
|
||||
std::string createSongPath(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 deleteMiscExceptCoverArt(const model::Song&);
|
||||
void updateMisc(const std::map<type::SongChanged, bool>&,
|
||||
model::Song&, const model::Song&);
|
||||
void modifySongOnFilesystem(model::Song&, const model::Song&);
|
||||
|
||||
@@ -12,7 +12,12 @@ namespace utility
|
||||
{
|
||||
public:
|
||||
model::Song retrieveMetadata(std::string&);
|
||||
|
||||
model::Cover updateCoverArt(const model::Song&, model::Cover&, const std::string&);
|
||||
model::Cover applyStockCoverArt(const model::Song&, model::Cover&, const std::string&);
|
||||
model::Cover applyCoverArt(const model::Song&, model::Cover&);
|
||||
|
||||
bool songContainsCoverArt(const model::Song&);
|
||||
|
||||
void updateMetadata(model::Song&, const model::Song&);
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user