Saving changes
This commit is contained in:
@@ -78,6 +78,8 @@ private:
|
||||
void printAction() noexcept;
|
||||
void printFlags() noexcept;
|
||||
|
||||
std::vector<std::string> parsedFlags();
|
||||
|
||||
std::string action;
|
||||
|
||||
std::vector<Models::Flags> flags;
|
||||
|
||||
@@ -55,6 +55,9 @@ private:
|
||||
void downloadSong();
|
||||
void retrieveObjects();
|
||||
void uploadSong();
|
||||
|
||||
Models::Token parseToken(Models::API);
|
||||
|
||||
// Uploads a single song. The song is constructed from a metadata file that contains
|
||||
// information about the album the song is from. Also, the cover art of the song must
|
||||
// be present.
|
||||
|
||||
@@ -13,13 +13,6 @@ public:
|
||||
std::string value;
|
||||
};
|
||||
|
||||
|
||||
struct Flags
|
||||
{
|
||||
std::string flag;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+11
-10
@@ -1,18 +1,18 @@
|
||||
#ifndef UPLOAD_H_
|
||||
#define UPLOAD_H_
|
||||
|
||||
#include<filesystem>
|
||||
#include<string>
|
||||
#include<vector>
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include<nlohmann/json.hpp>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include"Managers/CommitManager.h"
|
||||
#include"Managers/FileManager.h"
|
||||
#include"Models/API.h"
|
||||
#include"Models/Song.h"
|
||||
#include"Models/Token.h"
|
||||
#include"Models/UploadForm.h"
|
||||
#include "Managers/CommitManager.h"
|
||||
#include "Managers/FileManager.h"
|
||||
#include "Models/API.h"
|
||||
#include "Models/Song.h"
|
||||
#include "Models/Token.h"
|
||||
#include "Models/UploadForm.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace Syncers
|
||||
class Upload
|
||||
{
|
||||
public:
|
||||
Upload() = default;
|
||||
Upload(Models::API api, Models::Token token) : m_token(token), api(api)
|
||||
{
|
||||
this->api.endpoint = "song/data";
|
||||
|
||||
@@ -21,6 +21,9 @@ public:
|
||||
}
|
||||
|
||||
void initializeValues();
|
||||
|
||||
template<typename T>
|
||||
void printValue(T val);
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user