added sync back reading progress for remote reading

added covers to remote folders (it could cause performance issues)
added read next/previous to remote reading
This commit is contained in:
Luis Ángel San Martín
2014-07-30 18:28:01 +02:00
parent 093b2b0cb1
commit d584fc2879
13 changed files with 120 additions and 8 deletions

View File

@ -18,6 +18,7 @@
#include "controllers/comiccontroller.h"
#include "controllers/folderinfocontroller.h"
#include "controllers/pagecontroller.h"
#include "controllers/updatecomiccontroller.h"
#include "controllers/errorcontroller.h"
#include "db_helper.h"
@ -34,6 +35,7 @@ void RequestMapper::service(HttpRequest& request, HttpResponse& response) {
QRegExp folderInfo("/library/.+/folder/[0-9]+/info/?"); //get folder info
QRegExp comic("/library/.+/comic/[0-9]+/?"); //get comic info
QRegExp comicOpen("/library/.+/comic/[0-9]+/remote/?"); //the server will open for reading the comic
QRegExp comicUpdate("/library/.+/comic/[0-9]+/update/?"); //get comic info
QRegExp comicClose("/library/.+/comic/[0-9]+/close/?"); //the server will close the comic and free memory
QRegExp cover("/library/.+/cover/[0-9a-f]+.jpg"); //get comic cover (navigation)
QRegExp comicPage("/library/.+/comic/[0-9]+/page/[0-9]+/?"); //get comic page
@ -76,7 +78,11 @@ void RequestMapper::service(HttpRequest& request, HttpResponse& response) {
else if(comicPage.exactMatch(path))
{
PageController().service(request,response);
}
}
else if(comicUpdate.exactMatch(path))
{
UpdateComicController().service(request, response);
}
}
else
{