Add Global Bookmark feature
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user