aboutsummaryrefslogtreecommitdiff
path: root/notebookmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'notebookmodel.h')
-rw-r--r--notebookmodel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/notebookmodel.h b/notebookmodel.h
index 51148e5..3fda090 100644
--- a/notebookmodel.h
+++ b/notebookmodel.h
@@ -28,6 +28,10 @@
#define ARCHIVE_EXTENSION "archive"
#define AFD_NOTEBOOK_EXTENSION "afd"
+#define PEN_USER_TIME_FILE ".usertime"
+#define PEN_LAST_SYNC_FILE ".lastsync"
+#define PEN_SYNC_LOCK_FILE ".sync.lck"
+
class NotebookModel : public QAbstractItemModel
{
Q_OBJECT
@@ -35,6 +39,8 @@ class NotebookModel : public QAbstractItemModel
public:
explicit NotebookModel(QObject *parent = 0);
+ typedef quint64 PenTime;
+
enum Roles {
FileNameRole = Qt::UserRole
};
@@ -43,6 +49,7 @@ public:
static QString userDataDirectory();
QString penDirectory(const QString &name) const;
+ PenTime penUserTime(const QString &name) const;
QString notebookDirectory(const QString &penName, const QString &nbName) const;
QString notebookDirectory(const QModelIndex &index) const;
QString paperReplayDirectory(const QString &name) const;