aboutsummaryrefslogtreecommitdiff
path: root/smartpen.h
diff options
context:
space:
mode:
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);