Files
fegger 00c8d9b843 Refactor containers and library loading
Replace trackPtr with raw Track* pointers in HashTable, add loadLibrary
to PlayerLocal, remove unused File helpers, and fix broken artwork/artist
SQL bindings.
2026-06-22 11:51:27 +02:00

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_;
};