mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Add class for scanning a whole library looking for xml info in all the files
This commit is contained in:
32
YACReaderLibrary/xml_info_library_scanner.h
Normal file
32
YACReaderLibrary/xml_info_library_scanner.h
Normal 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
|
Reference in New Issue
Block a user