From 6cb50e66f3c196a2a4bcc95a419260d6b8c2461f Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 11 Jun 2015 01:16:26 +0200 Subject: experiment with audio/paperreplay data --- smartpen.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'smartpen.h') diff --git a/smartpen.h b/smartpen.h index c93e016..c44ef71 100644 --- a/smartpen.h +++ b/smartpen.h @@ -21,7 +21,7 @@ public: explicit Smartpen(QObject *parent = 0); ~Smartpen(); - typedef QPair Address; + typedef QPair Address; bool isConnected() const; @@ -37,18 +37,20 @@ public: struct ChangeReport { QString guid; + QString className; QString title; }; QList getChangeList(const QDateTime &from = QDateTime()); QByteArray getLspData(const QString &name, const QDateTime &from = QDateTime()); - QByteArray getPaperReplay(); + QByteArray getPaperReplay(const QDateTime &from = QDateTime()); static qint64 toPenTime(const QDateTime &dt); static QDateTime fromPenTime(qint64 t); static QString toPenSerial(quint64 id); + static quint64 toPenId(const QString &serial); public slots: bool connectToPen(const Address &addr); @@ -65,6 +67,7 @@ private: void handleObexRequestDone(obex_object_t *object, int obex_cmd, int obex_rsp); static QString toPenSerialSegment(quint32 id, int len); + static quint32 fromPenSerialSegment(const QString &s); static QByteArray encodeUtf16(const QString &s); void addConnHeader(obex_object_t *object) const; -- cgit v1.2.3