diff options
Diffstat (limited to 'daemon/manager.cpp')
| -rw-r--r-- | daemon/manager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/manager.cpp b/daemon/manager.cpp index 6fd47a4..b488432 100644 --- a/daemon/manager.cpp +++ b/daemon/manager.cpp @@ -59,6 +59,8 @@ Manager::Manager(Settings *settings, QObject *parent) : connect(appmsg, &AppMsgManager::appStarted, this, &Manager::onAppOpened); connect(appmsg, &AppMsgManager::appStopped, this, &Manager::onAppClosed); + connect(js, &JSKitManager::appNotification, this, &Manager::onAppNotification); + QDBusConnection session = QDBusConnection::sessionBus(); new WatchAdaptor(proxy); session.registerObject("/org/pebbled/Watch", proxy); @@ -391,6 +393,11 @@ void Manager::transliterateMessage(const QString &text) } } +void Manager::onAppNotification(const QUuid &uuid, const QString &title, const QString &body) +{ + watch->sendSMSNotification(title, body); +} + void Manager::onAppMessage(const QUuid &uuid, const QVariantMap &data) { emit proxy->AppMessage(uuid.toString(), data); |
