aboutsummaryrefslogtreecommitdiff
path: root/smartpen.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-21 20:49:42 +0200
committerJavier <dev.git@javispedro.com>2015-06-21 20:49:42 +0200
commitd334906cdb5ad988c9e3ad1e9827eab774d1a283 (patch)
treeb0207db387da9fab419ae25f4ebcb995636da6d4 /smartpen.h
parenta27ad0c43b3b5202fa71e1e857ba7955df46338d (diff)
downloadscribiu-d334906cdb5ad988c9e3ad1e9827eab774d1a283.tar.gz
scribiu-d334906cdb5ad988c9e3ad1e9827eab774d1a283.zip
use pen time, not host wall clock to store lastsync timestamp
Diffstat (limited to 'smartpen.h')
-rw-r--r--smartpen.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/smartpen.h b/smartpen.h
index 12ed898..18ac955 100644
--- a/smartpen.h
+++ b/smartpen.h
@@ -40,6 +40,8 @@ public:
~Smartpen();
typedef QPair<unsigned int, unsigned int> Address;
+ typedef qint64 PenTime;
+ typedef quint64 PenId;
bool isConnected() const;
@@ -57,18 +59,19 @@ public:
QString guid;
QString className;
QString title;
+ PenTime endTime;
};
- QList<ChangeReport> getChangeList(const QDateTime &from = QDateTime());
+ QList<ChangeReport> getChangeList(PenTime from = 0);
- QByteArray getLspData(const QString &name, const QDateTime &from = QDateTime());
- QByteArray getPaperReplay(const QDateTime &from = QDateTime());
+ QByteArray getLspData(const QString &name, PenTime from = 0);
+ QByteArray getPaperReplay(PenTime from = 0);
- static qint64 toPenTime(const QDateTime &dt);
- static QDateTime fromPenTime(qint64 t);
+ static PenTime toPenTime(const QDateTime &dt);
+ static QDateTime fromPenTime(PenTime t);
- static QString toPenSerial(quint64 id);
- static quint64 toPenId(const QString &serial);
+ static QString toPenSerial(PenId id);
+ static PenId toPenId(const QString &serial);
public slots:
bool connectToPen(const Address &addr);