Tying something out
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "models.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
std::string create_directory_process(Song, const char*);
|
||||
std::string read_cover_art(const char*);
|
||||
|
||||
bool delete_song(Song*);
|
||||
|
||||
void copy_stock_to_root(const char*, const std::string);
|
||||
void copy_song_to_path(const char*, const char*);
|
||||
void delete_cover_art_file(const std::string);
|
||||
void delete_directories(Song, const char*);
|
||||
void delete_song(Song);
|
||||
@@ -0,0 +1,48 @@
|
||||
#include <iostream>
|
||||
|
||||
//#include <taglib/attachedpictureframe.h>
|
||||
#include <attachedpictureframe.h>
|
||||
//#include <taglib/mpegfile.h>
|
||||
//#include <mpegfile.h>
|
||||
//#include <taglib/tag.h>
|
||||
#include <tag.h>
|
||||
//#include <taglib/tfile.h>
|
||||
#include <tfile.h>
|
||||
//#include <taglib/tfilestream.h>
|
||||
#include <tfilestream.h>
|
||||
//#include <taglib/fileref.h>
|
||||
#include <fileref.h>
|
||||
//#include <taglib/tbytevector.h>
|
||||
#include <tbytevector.h>
|
||||
//#include <taglib/tbytevectorstream.h>
|
||||
#include <tbytevectorstream.h>
|
||||
//#include <taglib/tpropertymap.h>
|
||||
#include <tpropertymap.h>
|
||||
//#include <taglib/id3v2tag.h>
|
||||
#include <id3v2tag.h>
|
||||
|
||||
class imageFile : public TagLib::File
|
||||
{
|
||||
public:
|
||||
imageFile(const char *file);
|
||||
/**
|
||||
imageFile(const char *file) : TagLib::File(file)
|
||||
{
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
TagLib::ByteVector data();
|
||||
/**
|
||||
TagLib::ByteVector data()
|
||||
{
|
||||
return readBlock(length());
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
private:
|
||||
virtual TagLib::Tag *tag() const { return 0; }
|
||||
virtual TagLib::AudioProperties *audioProperties() const { return 0; }
|
||||
virtual bool save() { return false; }
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "models.h"
|
||||
@@ -0,0 +1,43 @@
|
||||
#ifndef MODELS_H_
|
||||
#define MODELS_H_
|
||||
|
||||
struct Song
|
||||
{
|
||||
int Id;
|
||||
char Title[1024];
|
||||
char Artist[1024];
|
||||
char Album[1024];
|
||||
char Genre[1024];
|
||||
int Year;
|
||||
int Duration;
|
||||
char SongPath[1024];
|
||||
};
|
||||
|
||||
struct Cover
|
||||
{
|
||||
int Id;
|
||||
char SongTitle[1024];
|
||||
char ImagePath[1024];
|
||||
};
|
||||
|
||||
struct LoginRes
|
||||
{
|
||||
int UserId;
|
||||
char Username[1024];
|
||||
char Token[1024];
|
||||
char TokenType[1024];
|
||||
char Message[1024];
|
||||
int Expiration;
|
||||
};
|
||||
|
||||
struct TokenReq
|
||||
{
|
||||
char ClientId[1024];
|
||||
char ClientSecret[1024];
|
||||
char Audience[1024];
|
||||
char GrantType[1024];
|
||||
char URI[1024];
|
||||
char Endpoint[1024];
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user