New controller for serving the comics being read.

This commit is contained in:
Luis Ángel San Martín
2016-08-23 22:23:26 +02:00
parent 87e9cf92ff
commit dbc9c9848a
3 changed files with 61 additions and 2 deletions

View File

@ -0,0 +1,20 @@
#ifndef READINGCOMICSCONTROLLER_H
#define READINGCOMICSCONTROLLER_H
#include "httprequest.h"
#include "httpresponse.h"
#include "httprequesthandler.h"
class ReadingComicsController : public HttpRequestHandler {
Q_OBJECT
Q_DISABLE_COPY(ReadingComicsController)
public:
ReadingComicsController();
void service(HttpRequest& request, HttpResponse& response);
private:
void serviceContent(const int &library, HttpResponse &response);
};
#endif // READINGCOMICSCONTROLLER_H