feat: port crossink 'read book move' feature to crosspoint (#2032)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user