Added new class for serving a list of reading lists, service is not implemented yet.

This commit is contained in:
Luis Ángel San Martín
2016-10-30 09:16:28 +01:00
parent ff4befb60e
commit 42a16a273b
3 changed files with 48 additions and 2 deletions

View File

@ -0,0 +1,24 @@
#include "readinglistscontroller.h"
ReadingListsController::ReadingListsController()
{
}
void ReadingListsController::service(HttpRequest &request, HttpResponse &response)
{
response.setHeader("Content-Type", "text/plain; charset=utf-8");
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
QStringList pathElements = path.split('/');
int libraryId = pathElements.at(2).toInt();
serviceContent(libraryId, response);
response.write("",true);
}
void ReadingListsController::serviceContent(const int library, HttpResponse &response)
{
}