aboutsummaryrefslogtreecommitdiff
path: root/afdnotebook.cc
diff options
context:
space:
mode:
Diffstat (limited to 'afdnotebook.cc')
-rw-r--r--afdnotebook.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/afdnotebook.cc b/afdnotebook.cc
index 38f1fdc..e3b024a 100644
--- a/afdnotebook.cc
+++ b/afdnotebook.cc
@@ -49,6 +49,11 @@ QString AfdNotebook::title() const
return _title;
}
+quint64 AfdNotebook::guid() const
+{
+ return _guid;
+}
+
int AfdNotebook::numPages() const
{
return _pages.size();
@@ -232,6 +237,7 @@ bool AfdNotebook::parseMainInfo()
}
_title = info["title"];
+ _guid = info["guid"].mid(3).toULongLong(0, 16);
_firstPage = PageAddress(info["pagestart"]);
_lastPage = PageAddress(info["pagestop"]);
_pagesPerBook = info.value("segment-pages-per-book", "108").toUInt();