diff options
Diffstat (limited to 'paperreplay.h')
-rw-r--r-- | paperreplay.h | 6 |
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; }; |