summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/pebbledinterface.cpp8
-rw-r--r--app/pebbledinterface.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/app/pebbledinterface.cpp b/app/pebbledinterface.cpp
index b30af28..9338f7f 100644
--- a/app/pebbledinterface.cpp
+++ b/app/pebbledinterface.cpp
@@ -20,6 +20,8 @@ PebbledInterface::PebbledInterface(QObject *parent) :
this, &PebbledInterface::nameChanged);
connect(watch, &OrgPebbledWatchInterface::AddressChanged,
this, &PebbledInterface::addressChanged);
+ connect(watch, &OrgPebbledWatchInterface::InfoChanged,
+ this, &PebbledInterface::infoChanged);
connect(watch, &OrgPebbledWatchInterface::ConnectedChanged,
this, &PebbledInterface::connectedChanged);
connect(watch, &OrgPebbledWatchInterface::AppUuidChanged,
@@ -140,6 +142,12 @@ QString PebbledInterface::address() const
return watch->address();
}
+QVariantMap PebbledInterface::info() const
+{
+ qDebug() << Q_FUNC_INFO;
+ return watch->info();
+}
+
QString PebbledInterface::appUuid() const
{
qDebug() << Q_FUNC_INFO;
diff --git a/app/pebbledinterface.h b/app/pebbledinterface.h
index 50269ff..cba5416 100644
--- a/app/pebbledinterface.h
+++ b/app/pebbledinterface.h
@@ -18,6 +18,7 @@ class PebbledInterface : public QObject
Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged)
Q_PROPERTY(QString name READ name NOTIFY nameChanged)
Q_PROPERTY(QString address READ address NOTIFY addressChanged)
+ Q_PROPERTY(QVariantMap info READ info NOTIFY infoChanged)
Q_PROPERTY(QString appUuid READ appUuid NOTIFY appUuidChanged)
Q_PROPERTY(QStringList appSlots READ appSlots NOTIFY appSlotsChanged)
@@ -31,6 +32,7 @@ public:
bool connected() const;
QString name() const;
QString address() const;
+ QVariantMap info() const;
QString appUuid() const;
QStringList appSlots() const;
@@ -52,6 +54,7 @@ signals:
void connectedChanged();
void nameChanged();
void addressChanged();
+ void infoChanged();
void appUuidChanged();
void appSlotsChanged();
void allAppsChanged();