aboutsummaryrefslogtreecommitdiff
path: root/paperreplay.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 03:32:35 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 03:32:35 +0200
commit46cb4b079be113996214660020d6ef0c3d1f1e80 (patch)
tree4f3c7ec2d09fe532b2d0a640aadffe52d6abf67a /paperreplay.h
parent59feffc5a253fec33b310f7a0105c8ef42b9019b (diff)
downloadscribiu-46cb4b079be113996214660020d6ef0c3d1f1e80.tar.gz
scribiu-46cb4b079be113996214660020d6ef0c3d1f1e80.zip
paperless replay also working
Diffstat (limited to 'paperreplay.h')
-rw-r--r--paperreplay.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/paperreplay.h b/paperreplay.h
index c9eb6f2..a81e8a4 100644
--- a/paperreplay.h
+++ b/paperreplay.h
@@ -41,6 +41,8 @@ public:
QString fileName() const;
+ static bool startTimeLess(const Session &a, const Session &b);
+
private:
Session(quint64 id);
QSharedDataPointer<SessionData> d;
@@ -63,9 +65,10 @@ public:
friend class PaperReplay;
};
- bool open(const QString &path, const QString &penSerial, quint64 notebookGuid);
+ bool open(const QString &path, quint64 notebookGuid = 0);
void close();
+ QList<Session> sessions() const;
SessionList sessions(quint64 pageAddress) const;
private:
@@ -79,6 +82,7 @@ private:
private:
QDir _dir;
+ QHash<quint64, Session> _sessions;
QMap<quint64, QMap<qint64, Session> > _byPageTime;
};