mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 09:50:33 -04:00
39 lines
776 B
C++
39 lines
776 B
C++
#ifndef XMLINFOLIBRARYSCANNER_H
|
|
#define XMLINFOLIBRARYSCANNER_H
|
|
|
|
#include <QtCore>
|
|
#include <QSqlQuery>
|
|
|
|
namespace YACReader {
|
|
|
|
class XMLInfoLibraryScanner : public QThread
|
|
{
|
|
Q_OBJECT
|
|
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;
|
|
|
|
public slots:
|
|
void stop();
|
|
|
|
signals:
|
|
void comicScanned(QString, QString);
|
|
|
|
private:
|
|
QString source;
|
|
QString target;
|
|
bool stopRunning;
|
|
bool partialUpdate;
|
|
QModelIndex folderDestinationModelIndex;
|
|
|
|
void updateFromSQLQuery(QSqlDatabase &db, QSqlQuery &query);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // XMLINFOLIBRARYSCANNER_H
|