mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
added a new web controller for providing the content information of a folder
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
#ifndef FOLDERCONTENTCONTROLLER_H
|
||||
#define FOLDERCONTENTCONTROLLER_H
|
||||
|
||||
#include "httprequest.h"
|
||||
#include "httpresponse.h"
|
||||
#include "httprequesthandler.h"
|
||||
|
||||
class FolderContentController : public HttpRequestHandler {
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(FolderContentController);
|
||||
public:
|
||||
/** Constructor */
|
||||
FolderContentController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest& request, HttpResponse& response);
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||
};
|
||||
|
||||
#endif // FOLDERCONTENTCONTROLLER_H
|
Reference in New Issue
Block a user