mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Add a class for processing search queries and create the comics model data
This commit is contained in:
32
YACReaderLibrary/db/comic_query_result_procesor.h
Normal file
32
YACReaderLibrary/db/comic_query_result_procesor.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef COMIC_QUERY_RESULT_PROCESOR_H
|
||||
#define COMIC_QUERY_RESULT_PROCESOR_H
|
||||
|
||||
#include <QtCore>
|
||||
#include <QSqlQuery>
|
||||
|
||||
#include "yacreader_global_gui.h"
|
||||
#include "concurrent_queue.h"
|
||||
|
||||
class ComicItem;
|
||||
|
||||
namespace YACReader {
|
||||
|
||||
class ComicQueryResultProcesor : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComicQueryResultProcesor();
|
||||
|
||||
public slots:
|
||||
void createModelData(const SearchModifiers modifier, const QString &filter, const QString &databasePath);
|
||||
signals:
|
||||
void newData(QList<ComicItem *> *, const QString &);
|
||||
|
||||
private:
|
||||
ConcurrentQueue querySearchQueue;
|
||||
|
||||
QList<ComicItem *> *modelData(QSqlQuery &sqlquery);
|
||||
};
|
||||
};
|
||||
|
||||
#endif // COMIC_QUERY_RESULT_PROCESOR_H
|
Reference in New Issue
Block a user