1 #ifndef DIRECTORYFILESCANNER_H 2 #define DIRECTORYFILESCANNER_H 3 4 #include "Utils/Pimpl.h" 5 #include <QObject> 6 7 class MetaDataList; 8 9 namespace Directory 10 { 11 class MetaDataScanner : 12 public QObject 13 { 14 Q_OBJECT 15 PIMPL(MetaDataScanner) 16 17 signals: 18 void sigFinished(); 19 void sigCurrentProcessedPathChanged(const QString& path); 20 21 public: 22 explicit MetaDataScanner(const QStringList& files, bool recursive, QObject* parent=nullptr); 23 ~MetaDataScanner() override; 24 25 MetaDataList metadata() const; 26 QStringList files() const; 27 28 void setData(void* data); 29 void* data() const; 30 31 public slots: 32 void start(); 33 }; 34 } 35 36 37 #endif // DIRECTORYFILESCANNER_H 38