Added Utility and Type namespaces

This commit is contained in:
kdeng00
2019-09-01 16:56:52 -04:00
parent 1ec3511bc5
commit dfd4906371
30 changed files with 233 additions and 59 deletions
+17 -9
View File
@@ -1,3 +1,6 @@
#ifndef IMAGEFILE_H_
#define IMAGEFILE_H_
#include <iostream>
#include <attachedpictureframe.h>
@@ -10,15 +13,20 @@
#include <tpropertymap.h>
#include <id3v2tag.h>
class imageFile : public TagLib::File
namespace Utility
{
public:
imageFile(const char *file);
class imageFile : public TagLib::File
{
public:
imageFile(const char *file);
TagLib::ByteVector data();
TagLib::ByteVector data();
private:
virtual TagLib::Tag *tag() const { return 0; }
virtual TagLib::AudioProperties *audioProperties() const { return 0; }
virtual bool save() { return false; }
};
private:
virtual TagLib::Tag *tag() const { return 0; }
virtual TagLib::AudioProperties *audioProperties() const { return 0; }
virtual bool save() { return false; }
};
}
#endif
+10 -7
View File
@@ -6,14 +6,17 @@
#include "models/models.h"
class metadata_retriever
namespace Utility
{
public:
Model::Song retrieve_metadata(std::string&);
Model::Cover update_cover_art(const Model::Song&, Model::Cover& cov, const std::string&);
class metadata_retriever
{
public:
Model::Song retrieve_metadata(std::string&);
Model::Cover update_cover_art(const Model::Song&, Model::Cover& cov, const std::string&);
void update_metadata(Model::Song updated_song, const Model::Song old_song);
private:
};
void update_metadata(Model::Song updated_song, const Model::Song old_song);
private:
};
}
#endif