Files
yacreader/YACReaderLibrary/server/controllers/v2/searchcontroller_v2.h
luisangelsm 3709b6e737
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Format includes using clang-format
2026-03-13 18:21:38 +01:00

27 lines
706 B
C++

#ifndef SEARCHCONTROLLER_H
#define SEARCHCONTROLLER_H
#include "httprequest.h"
#include "httprequesthandler.h"
#include "httpresponse.h"
#include <QSqlQuery>
class SearchController : public stefanfrings::HttpRequestHandler
{
Q_OBJECT
Q_DISABLE_COPY(SearchController)
public:
SearchController();
void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;
private:
void serviceSearch(int libraryId, const QString &query, stefanfrings::HttpResponse &response);
void getFolders(int libraryId, QSqlQuery &sqlQuery, QJsonArray &items);
void getComics(int libraryId, QSqlQuery &sqlQuery, QJsonArray &items);
};
#endif // SEARCHCONTROLLER_H