summaryrefslogtreecommitdiff
path: root/daemon/watchconnector.h
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-04-17 14:06:50 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-04-17 14:06:50 +0200
commit453e9ea4ea8d56ad84c2329cb95f1dfed279be95 (patch)
tree0987f90f3c9d0302dcc7dde7d1854af38f04f419 /daemon/watchconnector.h
parente059c47ff2986c329d075f6f5fbedbf19cff430d (diff)
Better watch versions handling
Didn't react on firmware version change.
Diffstat (limited to 'daemon/watchconnector.h')
-rw-r--r--daemon/watchconnector.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h
index 8d78356..18f5fba 100644
--- a/daemon/watchconnector.h
+++ b/daemon/watchconnector.h
@@ -169,7 +169,7 @@ public:
QString hw_string;
quint8 metadata_version;
- QVariantMap toMap();
+ QVariantMap toMap() const;
};
struct WatchVersions {
@@ -180,7 +180,9 @@ public:
QString serialNumber;
QByteArray address;
- QVariantMap toMap();
+ QVariantMap toMap() const;
+ void clear();
+ bool isEmpty() const;
};
typedef QMap<int, QVariant> Dict;