/ desktop / datalake / indexer.hpp
indexer.hpp
 1  #pragma once
 2  
 3  #include <string>
 4  
 5  #include "cartographer.hpp"
 6  #include "config/config.hpp"
 7  #include "structs.hpp"
 8  
 9  class FileIndexer {
10    public:
11      FileIndexer(KotoLibraryConfig* config);
12      ~FileIndexer();
13  
14      QList<KotoArtist*> getArtists();
15      QList<KotoTrack*>  getFiles();
16      QString            getRoot();
17  
18      void index();
19  
20    protected:
21      QList<KotoArtist*> i_artists;
22      QList<KotoTrack*>  i_tracks;
23      QString            i_root;
24  };
25  
26  void indexAllLibraries();