aboutsummaryrefslogtreecommitdiff
path: root/smartpen.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-11 01:16:26 +0200
committerJavier <dev.git@javispedro.com>2015-06-11 01:16:26 +0200
commit6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (patch)
tree610963526dbd205500db145965309b1de2b18a97 /smartpen.h
parenta69e97943539a8abc4d2762638c169dc19c88516 (diff)
downloadscribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.tar.gz
scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.zip
experiment with audio/paperreplay data
Diffstat (limited to 'smartpen.h')
-rw-r--r--smartpen.h7
1 files changed, 5 insertions, 2 deletions
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<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;