Added Model namespace
This commit is contained in:
@@ -10,7 +10,7 @@ class coverArtManager
|
||||
public:
|
||||
coverArtManager(const std::string&);
|
||||
|
||||
Cover saveCover(const Song&, std::string&, const std::string&);
|
||||
Model::Cover saveCover(const Model::Song&, std::string&, const std::string&);
|
||||
private:
|
||||
std::string path;
|
||||
};
|
||||
|
||||
@@ -12,24 +12,19 @@ class directory_manager
|
||||
{
|
||||
public:
|
||||
|
||||
static std::string create_directory_process(Song, const std::string&);
|
||||
static std::string create_directory_process(Model::Song, const std::string&);
|
||||
static std::string configPath(std::string_view);
|
||||
static std::string contentOfPath(std::string_view);
|
||||
|
||||
static nlohmann::json credentialConfigContent(const std::string&);
|
||||
static nlohmann::json databaseConfigContent(const std::string&);
|
||||
static nlohmann::json pathConfigContent(const std::string&);
|
||||
// Return Cover instead
|
||||
//std::string read_cover_art(const std::string&);
|
||||
|
||||
|
||||
//void copy_stock_to_root(const std::string&, const std::string&);
|
||||
//void copy_song_to_path(const std::string&, const std::string&);
|
||||
void delete_cover_art_file(const std::string&, const std::string&);
|
||||
static void delete_directories(Song, const std::string&);
|
||||
static void delete_directories(Model::Song, const std::string&);
|
||||
|
||||
private:
|
||||
void delete_song(const Song);
|
||||
void delete_song(const Model::Song);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,12 +13,12 @@ class song_manager
|
||||
public:
|
||||
song_manager(std::string&);
|
||||
|
||||
void saveSong(Song&);
|
||||
void deleteSong(Song&);
|
||||
void saveSong(Model::Song&);
|
||||
void deleteSong(Model::Song&);
|
||||
|
||||
static void printSong(const Song&);
|
||||
static void printSong(const Model::Song&);
|
||||
private:
|
||||
void saveSongTemp(Song&);
|
||||
void saveSongTemp(Model::Song&);
|
||||
|
||||
std::string exe_path;
|
||||
};
|
||||
|
||||
@@ -16,12 +16,12 @@ class token_manager
|
||||
public:
|
||||
token_manager();
|
||||
|
||||
loginResult retrieve_token();
|
||||
loginResult retrieve_token(std::string_view);
|
||||
Model::loginResult retrieve_token();
|
||||
Model::loginResult retrieve_token(std::string_view);
|
||||
|
||||
bool is_token_valid(std::string&, Scope);
|
||||
private:
|
||||
auth_credentials parse_auth_credentials(std::string_view);
|
||||
Model::auth_credentials parse_auth_credentials(std::string_view);
|
||||
|
||||
std::vector<std::string> extract_scopes(const jwt::decoded_jwt&&);
|
||||
std::pair<bool, std::vector<std::string>> fetch_auth_header(const std::string&);
|
||||
|
||||
Reference in New Issue
Block a user