diff options
Diffstat (limited to 'daemon/manager.cpp')
| -rw-r--r-- | daemon/manager.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/daemon/manager.cpp b/daemon/manager.cpp index 4d6a525..55138d9 100644 --- a/daemon/manager.cpp +++ b/daemon/manager.cpp @@ -52,6 +52,7 @@ Manager::Manager(Settings *settings, QObject *parent) : connect(notifications, SIGNAL(error(const QString &)), SLOT(onNotifyError(const QString &)));
connect(notifications, SIGNAL(emailNotify(const QString &,const QString &,const QString &)), SLOT(onEmailNotify(const QString &,const QString &,const QString &)));
+ connect(notifications, SIGNAL(missedCallNotify(const QString &,const QString &)), SLOT(onMissedCallNotify(const QString &,const QString &)));
connect(notifications, SIGNAL(smsNotify(const QString &,const QString &)), SLOT(onSmsNotify(const QString &,const QString &)));
connect(notifications, SIGNAL(twitterNotify(const QString &,const QString &)), SLOT(onTwitterNotify(const QString &,const QString &)));
connect(notifications, SIGNAL(facebookNotify(const QString &,const QString &)), SLOT(onFacebookNotify(const QString &,const QString &)));
@@ -139,12 +140,12 @@ void Manager::onActiveVoiceCallStatusChanged() return;
}
- qCDebug(l) << "handlerId:" << handler->handlerId()
- << "providerId:" << handler->providerId()
- << "status:" << handler->status()
- << "statusText:" << handler->statusText()
- << "lineId:" << handler->lineId()
- << "incoming:" << handler->isIncoming();
+// qCDebug(l) << "handlerId:" << handler->handlerId()
+// << "providerId:" << handler->providerId()
+// << "status:" << handler->status()
+// << "statusText:" << handler->statusText()
+// << "lineId:" << handler->lineId()
+// << "incoming:" << handler->isIncoming();
if (!watch->isConnected()) {
qCDebug(l) << "Watch is not connected";
@@ -203,6 +204,15 @@ void Manager::onNotifyError(const QString &message) qWarning() << "Error:" << message;
}
+void Manager::onMissedCallNotify(const QString &sender, const QString &data)
+{
+ if (settings->property("transliterateMessage").toBool()) {
+ transliterateMessage(sender);
+ transliterateMessage(data);
+ }
+ watch->sendMissedCallNotification(sender, data);
+}
+
void Manager::onSmsNotify(const QString &sender, const QString &data)
{
if (settings->property("transliterateMessage").toBool()) {
|
