mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 10:50:27 -04:00
37 lines
763 B
C++
37 lines
763 B
C++
#ifndef FOLDER_QUERY_RESULT_PROCESSOR_H
|
|
#define FOLDER_QUERY_RESULT_PROCESSOR_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "yacreader_global.h"
|
|
#include "concurrent_queue.h"
|
|
|
|
class FolderItem;
|
|
class FolderModel;
|
|
class QSqlQuery;
|
|
|
|
namespace YACReader {
|
|
|
|
class FolderQueryResultProcessor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FolderQueryResultProcessor(FolderModel *model);
|
|
|
|
public slots:
|
|
void createModelData(const SearchModifiers modifier, const QString &filter, bool includeComics);
|
|
|
|
signals:
|
|
void newData(QMap<unsigned long long int, FolderItem *> *filteredItems, FolderItem *root);
|
|
|
|
private:
|
|
ConcurrentQueue querySearchQueue;
|
|
|
|
FolderModel *model;
|
|
|
|
void setupFilteredModelData(QSqlQuery &sqlquery);
|
|
};
|
|
};
|
|
|
|
#endif // FOLDER_QUERY_RESULT_PROCESSOR_H
|