mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
The function doesn't use data members or other member functions. It could even be put into an unnamed namespace in the cpp file, but that would require more changes and complicate turning it back into a member function if need be in the future.
33 lines
677 B
C++
33 lines
677 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 SearchModifiers modifier, 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
|