koto/desktop/datalake/indexer.hpp
Joshua Strobl 62c99ee67c feat: initial database creation, loading
fixes for cartographer and automatically add track to album when adding to artist
2024-10-05 00:03:50 +03:00

26 lines
476 B
C++

#pragma once
#include <string>
#include "cartographer.hpp"
#include "config/config.hpp"
#include "structs.hpp"
class FileIndexer {
public:
FileIndexer(KotoLibraryConfig* config);
~FileIndexer();
QList<KotoArtist*> getArtists();
QList<KotoTrack*> getFiles();
QString getRoot();
void index();
protected:
QList<KotoArtist*> i_artists;
QList<KotoTrack*> i_tracks;
QString i_root;
};
void indexAllLibraries();