aboutsummaryrefslogtreecommitdiff
path: root/smartpen.h
diff options
context:
space:
mode:
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;