aboutsummaryrefslogtreecommitdiff
path: root/afdnotebook.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-13 04:24:21 +0200
committerJavier <dev.git@javispedro.com>2015-06-13 04:24:21 +0200
commit41f9a9b0563c3bd523bd534b854e50161a2626b3 (patch)
tree8c30aacdb80e26fd4202d345b30cab84ba437437 /afdnotebook.cc
parent6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (diff)
downloadscribiu-41f9a9b0563c3bd523bd534b854e50161a2626b3.tar.gz
scribiu-41f9a9b0563c3bd523bd534b854e50161a2626b3.zip
continue with paperreplay loading changes
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();