diff options
author | Javier <dev.git@javispedro.com> | 2015-06-11 01:16:26 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-11 01:16:26 +0200 |
commit | 6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (patch) | |
tree | 610963526dbd205500db145965309b1de2b18a97 /smartpen.h | |
parent | a69e97943539a8abc4d2762638c169dc19c88516 (diff) | |
download | scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.tar.gz scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.zip |
experiment with audio/paperreplay data
Diffstat (limited to 'smartpen.h')
-rw-r--r-- | smartpen.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -21,7 +21,7 @@ public: explicit Smartpen(QObject *parent = 0); ~Smartpen(); - typedef QPair<int, int> Address; + typedef QPair<unsigned int, unsigned int> Address; bool isConnected() const; @@ -37,18 +37,20 @@ public: struct ChangeReport { QString guid; + QString className; QString title; }; QList<ChangeReport> 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; |