fixes for cartographer and automatically add track to album when adding to artist
26 lines
476 B
C++
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();
|