diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-06-30 01:59:14 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-06-30 01:59:14 +0200 |
| commit | 3c52767b24f27ac166f9c68e2fc73811527bafe1 (patch) | |
| tree | d4a4050de526967ac4c3407f643b51d616cc31fe /daemon/dbusconnector.h | |
| parent | 1d5e1b8dbb04d1ba916ff90445d22e0a145fd041 (diff) | |
Reworked WatchConnector connection/disconnection handling
Fixed crash after Pebble disconnecting
Diffstat (limited to 'daemon/dbusconnector.h')
| -rw-r--r-- | daemon/dbusconnector.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/daemon/dbusconnector.h b/daemon/dbusconnector.h index 8dadb5a..e166238 100644 --- a/daemon/dbusconnector.h +++ b/daemon/dbusconnector.h @@ -2,17 +2,23 @@ #define DBUSCONNECTOR_H #include <QObject> +#include <QVariantMap> class DBusConnector : public QObject { Q_OBJECT + + Q_PROPERTY(QVariantMap pebble READ pebble NOTIFY pebbleChanged) + + QVariantMap pebbleProps; + public: explicit DBusConnector(QObject *parent = 0); - QString pebbleName; - QString pebbleAddress; + QVariantMap pebble() { return pebbleProps; } signals: + void pebbleChanged(); public slots: bool findPebble(); |
