mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
33 lines
645 B
C++
33 lines
645 B
C++
#ifndef COMIC_QUERY_RESULT_PROCESSOR_H
|
|
#define COMIC_QUERY_RESULT_PROCESSOR_H
|
|
|
|
#include <QtCore>
|
|
#include <QSqlQuery>
|
|
|
|
#include "yacreader_global.h"
|
|
#include "concurrent_queue.h"
|
|
|
|
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
|