koto/desktop/datalake/indexer.hpp

26 lines
514 B
C++
Raw Normal View History

2024-09-29 17:29:10 +03:00
#pragma once
#include <string>
#include "cartographer.hpp"
2024-09-29 17:29:10 +03:00
#include "config/library.hpp"
#include "structs.hpp"
2024-09-29 17:29:10 +03:00
class FileIndexer {
public:
FileIndexer(KotoLibraryConfig* config);
~FileIndexer();
QList<KotoArtist*> getArtists();
QList<KotoTrack*> getFiles();
QString getRoot();
2024-09-29 17:29:10 +03:00
void index();
2024-09-29 17:29:10 +03:00
protected:
void indexDirectory(QString path, int depth);
QList<KotoArtist*> i_artists;
QList<KotoTrack*> i_tracks;
QString i_root;
2024-09-29 17:29:10 +03:00
};