mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
32 lines
615 B
C++
32 lines
615 B
C++
#ifndef COMIC_QUERY_RESULT_PROCESSOR_H
|
|
#define COMIC_QUERY_RESULT_PROCESSOR_H
|
|
|
|
#include "concurrent_queue.h"
|
|
|
|
#include <QSqlQuery>
|
|
#include <QtCore>
|
|
|
|
class ComicItem;
|
|
|
|
namespace YACReader {
|
|
|
|
class ComicQueryResultProcessor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ComicQueryResultProcessor();
|
|
|
|
public slots:
|
|
void createModelData(const QString &filter, const QString &databasePath);
|
|
signals:
|
|
void newData(QList<ComicItem *> *, const QString &);
|
|
|
|
private:
|
|
ConcurrentQueue querySearchQueue;
|
|
|
|
static QList<ComicItem *> *modelData(QSqlQuery &sqlquery);
|
|
};
|
|
};
|
|
|
|
#endif // COMIC_QUERY_RESULT_PROCESSOR_H
|