feat: port crossink 'read book move' feature to crosspoint (#2032)

This commit is contained in:
KemoNine
2026-05-18 12:39:50 -04:00
committed by GitHub
parent 8a11f44571
commit 06d28d6ffa
28 changed files with 130 additions and 1 deletions
+6
View File
@@ -37,6 +37,12 @@ class RecentBooksStore {
void updateBook(const std::string& path, const std::string& title, const std::string& author,
const std::string& coverBmpPath);
// Repoint an entry's path (and coverBmpPath, if it lived under the old cache dir) after the
// backing file and cache dir were moved on disk. No-op if no entry matches oldPath.
// Persists on success. Keeps the entry's list position (does not reorder).
void updatePath(const std::string& oldPath, const std::string& newPath, const std::string& oldCachePath,
const std::string& newCachePath);
// True if the book's backing file is no longer present on the SD card.
static bool isMissing(const RecentBook& book);