Add class for scanning a whole library looking for xml info in all the files

This commit is contained in:
Luis Ángel San Martín
2021-09-27 15:32:39 +02:00
parent 4deb5e1911
commit 6e340e5011
2 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#ifndef XMLINFOLIBRARYSCANNER_H
#define XMLINFOLIBRARYSCANNER_H
#include <QtCore>
namespace YACReader {
class XMLInfoLibraryScanner : public QThread
{
Q_OBJECT
public:
XMLInfoLibraryScanner();
void scanLibrary(const QString &source, const QString &target);
protected:
void run() override;
public slots:
void stop();
signals:
void comicScanned(QString, QString);
private:
QString source;
QString target;
bool stopRunning;
};
}
#endif // XMLINFOLIBRARYSCANNER_H