00c8d9b843
Replace trackPtr with raw Track* pointers in HashTable, add loadLibrary to PlayerLocal, remove unused File helpers, and fix broken artwork/artist SQL bindings.
24 lines
537 B
C++
24 lines
537 B
C++
#pragma once
|
|
|
|
#include "Containers.h"
|
|
|
|
#include <filesystem>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace fs = std::filesystem;
|
|
|
|
class File {
|
|
public:
|
|
Track importFile( const std::string& filePath );
|
|
void scanFolder( const std::string& folderPath, std::vector<Track>& tracks );
|
|
void updateLibrary();
|
|
void readFileTag( Track& t );
|
|
TagLib::VariantMap importArtwork( Track& t );
|
|
|
|
private:
|
|
std::string path_;
|
|
fs::path musicFolder_ = "data/";
|
|
std::string fileName_;
|
|
};
|