initial commit
This commit is contained in:
commit
fae3d30dbd
26 changed files with 18409 additions and 0 deletions
0
desktop/datalake/artist.hpp
Normal file
0
desktop/datalake/artist.hpp
Normal file
6
desktop/datalake/indexer.cpp
Normal file
6
desktop/datalake/indexer.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "indexer.hpp"
|
||||
#include <QDirIterator>
|
||||
|
||||
FileIndexer::FileIndexer(KotoLibraryConfig * config) {
|
||||
|
||||
}
|
19
desktop/datalake/indexer.hpp
Normal file
19
desktop/datalake/indexer.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "config/library.hpp"
|
||||
#include "track.hpp"
|
||||
|
||||
class FileIndexer {
|
||||
public:
|
||||
FileIndexer(KotoLibraryConfig * config);
|
||||
~FileIndexer();
|
||||
|
||||
std::vector<KotoTrack *> getFiles();
|
||||
std::string getRoot();
|
||||
|
||||
void index();
|
||||
protected:
|
||||
std::vector<KotoTrack *> i_tracks;
|
||||
std::string i_root;
|
||||
};
|
0
desktop/datalake/track.cpp
Normal file
0
desktop/datalake/track.cpp
Normal file
26
desktop/datalake/track.hpp
Normal file
26
desktop/datalake/track.hpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
#include <KFileMetaData/SimpleExtractionResult>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class KotoTrack {
|
||||
public:
|
||||
KotoTrack(); // No-op constructor
|
||||
static KotoTrack * fromDb();
|
||||
static KotoTrack * fromMetadata(KFileMetaData::SimpleExtractionResult metadata);
|
||||
~KotoTrack();
|
||||
|
||||
private:
|
||||
std::string album;
|
||||
std::string album_artist;
|
||||
std::string artist;
|
||||
int disc_number;
|
||||
int duration;
|
||||
std::vector<std::string> genres;
|
||||
std::string lyrics;
|
||||
std::string narrator;
|
||||
std::string path;
|
||||
std::string title;
|
||||
int track_number;
|
||||
int year;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue