diff options
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; |