Add Global Bookmark feature

This commit is contained in:
jpirnay
2026-04-15 09:32:52 +02:00
parent f7bf43d39b
commit 2f4cea3706
19 changed files with 737 additions and 8 deletions
+15
View File
@@ -18,6 +18,20 @@ enum class KOReaderSyncOutcomeState : uint8_t {
APPLIED_REMOTE = 5,
};
struct PendingBookmarkJumpState {
bool active = false;
std::string bookPath; // source file path for disambiguation
uint16_t spineIndex = 0; // EPUB spine; ignored for TXT
uint16_t pageNumber = 0; // page within spine (EPUB) or global page (TXT)
void clear() {
active = false;
bookPath.clear();
spineIndex = 0;
pageNumber = 0;
}
};
struct KOReaderSyncSessionState {
bool active = false;
std::string epubPath;
@@ -60,6 +74,7 @@ class CrossPointState {
uint8_t readerActivityLoadCount = 0;
bool lastSleepFromReader = false;
KOReaderSyncSessionState koReaderSyncSession;
PendingBookmarkJumpState pendingBookmarkJump;
~CrossPointState() = default;
// Get singleton instance