mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Implement XML scanning for a folder
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define XMLINFOLIBRARYSCANNER_H
|
||||
|
||||
#include <QtCore>
|
||||
#include <QSqlQuery>
|
||||
|
||||
namespace YACReader {
|
||||
|
||||
@ -11,6 +12,7 @@ class XMLInfoLibraryScanner : public QThread
|
||||
public:
|
||||
XMLInfoLibraryScanner();
|
||||
void scanLibrary(const QString &source, const QString &target);
|
||||
void scanFolder(const QString &source, const QString &target, const QString &folder, const QModelIndex &dest);
|
||||
|
||||
protected:
|
||||
void run() override;
|
||||
@ -25,6 +27,10 @@ private:
|
||||
QString source;
|
||||
QString target;
|
||||
bool stopRunning;
|
||||
bool partialUpdate;
|
||||
QModelIndex folderDestinationModelIndex;
|
||||
|
||||
void updateFromSQLQuery(QSqlDatabase &db, QSqlQuery &query);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user