Commit Graph

71 Commits

Author SHA1 Message Date
a3f3149764 Return 404 if the comic is not found 2024-08-31 12:44:31 +02:00
19e45ef9de Fix issues getting marked as opened because android minimum current page is 1 2024-02-02 13:04:38 +01:00
a5d1036886 Rewrite LibrariesControllerV2 to be safer and include the library uuid 2024-01-14 08:38:00 +01:00
a4f36396f5 Update the sync controller for new clients 2024-01-13 17:20:22 +01:00
53f7fd4a28 Add new controller for getting a folder 2024-01-07 10:53:21 +01:00
5728d4bb18 Add more info to json content + better handling of optionality 2024-01-07 10:52:27 +01:00
13993f0381 Default folder json includes the new fields so make search include them too 2023-06-10 11:00:44 +02:00
ac5ba7bb31 Include "file_type" 2023-06-10 11:00:02 +02:00
003d88aa24 Calculate manga from type when serving json from the SearchController 2023-06-10 10:59:28 +02:00
d6b1c68285 Fix json produced by the search controller 2023-04-11 23:32:32 +02:00
4198b5ca3a Implement a server controller to provide a search API 2023-04-07 10:51:34 +02:00
bf36672ade Provide information about the comic updated in UpdateComicControllerV2 2022-10-15 11:39:55 +02:00
36538abc18 Fix memory leaks 2022-08-31 18:26:14 +02:00
5aa02a19bb clang-format 2021-10-18 21:56:52 +02:00
47324e7f22 Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax 2021-06-29 13:53:12 +02:00
f813a018d2 Comic: Virtual prototype for process(), fix signal/slot 2021-06-29 13:53:12 +02:00
8377de7c3e Clazy: Use fixits to refactor some old style signal connections 2021-06-29 13:53:12 +02:00
ad036ec6ae Include the hashes of the prev/next comics in the comic info when opening a comic in the server 2021-06-18 22:55:08 +02:00
0333c9f050 Add a new server controller for opening comics from reading lists 2021-05-25 21:45:07 +02:00
6cf11f47e1 Avoid potential null pointer access 2021-05-25 21:41:45 +02:00
6848295ba4 Remove unused imports and forward definitions 2021-05-25 21:40:55 +02:00
5f3824ff3c Fix order when getting next/previous remote comics
This sorting matches what the remote browser uses.
2021-04-30 09:53:35 +02:00
b8ad99fcaa Exract struct to reuse it 2021-04-30 09:52:31 +02:00
6ab5a83e01 Merge pull request #231 from vedgy/remove-unused-variable
PageController*::service: remove unused libraryName variable
2021-03-13 12:16:05 +01:00
97377cdcf4 Eliminate qsort, use std::sort 2021-03-13 10:46:43 +01:00
f60e17674e Server controllers: remove unused libraryName variable 2021-03-13 10:16:27 +02:00
5bc3ad5014 Send back more recent comic status to the client on sync 2020-08-25 19:03:00 +02:00
1b344d70e5 Update server code integration for QtWebApp 1.7.11
- Adapt server code for QtWebapp namespace 'stefanfrings'
- Implement custom modifications needed by v1 controller
  via template engine
- Unify iphone and ipad templates
2020-08-20 18:22:57 +02:00
b9acd13120 Fix code format errors due to changes in default coding style. (#150) 2020-07-24 21:17:49 +02:00
0b83764734 Revert "Thread ping pong" 2019-09-24 12:00:21 +02:00
be547081f2 Fix huge memleak in server code caused by thread pingpong fix.
Stopped QThreads don't process events, so cleanup signals get lost.
Prevent this from happening by keeping the threads alive and the comic
inside the thread (as we already do in the viewer). Cleanup happens by
connecting the comic's destroyed() signal to the thread's quit() slot.
2019-09-24 08:21:14 +02:00
9056fffb66 Use db transactions when updating the progress from iOS
Timeouts were a problem before.
2019-08-24 13:31:52 +02:00
fafcfdd2dc Give the OK to the connection asap 2019-08-24 11:07:36 +02:00
f29724e404 Annotate overridden methods 2019-06-01 16:04:48 +02:00
268bebbddd Use nullptr instead of 0 2019-06-01 16:04:48 +02:00
e3ec56aa43 Format code using clang-format 2019-05-30 19:46:37 +02:00
6467e2a510 Library: unused method parameter, so comment out the name 2019-04-01 11:25:16 +02:00
b3583b9bf3 Fixed potential stack overflow. 2018-09-01 08:10:18 -04:00
d5a11fb16b Add .gitattributes rules for text and binary handling 2018-07-30 15:04:04 +02:00
0100da5480 Make comicdownloadinfocontroller_v2 provide all the needed information. 2018-05-30 19:02:52 +02:00
dba264c31f Remove old commented code. 2018-05-29 17:12:34 +02:00
79db01cffc Do not close the connection in librariescontroller_v2 2018-05-29 17:12:22 +02:00
550795e418 Do not close the connection in covercontroller_v2 2018-05-29 17:12:09 +02:00
d909598732 Add missing include.
This fixes compilation windows debug.
2018-05-25 19:26:17 +02:00
1b63dc01db Remove comment. 2018-05-21 23:14:12 +02:00
66aa2c60c6 Fix comparison 2018-05-21 23:14:02 +02:00
8ea201ece9 Use usigned long long to fix compiler error 2018-05-21 23:13:47 +02:00
38e3b40e8f Process last time opened in sync controller 2018-05-21 22:10:53 +02:00
d6c563e881 If a comic doesn't have library and id info, then try to update the info in all the libraries. 2018-05-21 19:52:29 +02:00
50c9238376 Only try to set the next comic as read if there is a next comic. 2018-05-20 17:42:49 +02:00