initial functional file indexer, added Qt / C++ port of Cartographer
This commit is contained in:
parent
fae3d30dbd
commit
c52386abb4
19 changed files with 721 additions and 149 deletions
|
@ -1,19 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "cartographer.hpp"
|
||||
#include "config/library.hpp"
|
||||
#include "track.hpp"
|
||||
#include "structs.hpp"
|
||||
|
||||
class FileIndexer {
|
||||
public:
|
||||
FileIndexer(KotoLibraryConfig * config);
|
||||
~FileIndexer();
|
||||
public:
|
||||
FileIndexer(KotoLibraryConfig* config);
|
||||
~FileIndexer();
|
||||
|
||||
std::vector<KotoTrack *> getFiles();
|
||||
std::string getRoot();
|
||||
QList<KotoArtist*> getArtists();
|
||||
QList<KotoTrack*> getFiles();
|
||||
QString getRoot();
|
||||
|
||||
void index();
|
||||
protected:
|
||||
std::vector<KotoTrack *> i_tracks;
|
||||
std::string i_root;
|
||||
void index();
|
||||
|
||||
protected:
|
||||
void indexDirectory(QString path, int depth);
|
||||
QList<KotoArtist*> i_artists;
|
||||
QList<KotoTrack*> i_tracks;
|
||||
QString i_root;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue