yacreader/YACReaderLibrary/db/comic_query_result_processor.h
Igor Kushnir 5656c3f540 Make ComicQueryResultProcessor::modelData() static
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.
2021-02-06 20:08:47 +02:00

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