diff options
Diffstat (limited to 'smartpen.h')
-rw-r--r-- | smartpen.h | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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); |