summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
commitcba26597f1c09764d37be0d13863ec5d5c340da0 (patch)
tree5559b1274c228673e2bd519135de8de596c7e91b /libsowatch/watchserver.cpp
parentb414dbdb28d839c9755b1832f27f61d1ec9e7863 (diff)
downloadsowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.tar.gz
sowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.zip
new partially working incoming call plugin
Diffstat (limited to 'libsowatch/watchserver.cpp')
-rw-r--r--libsowatch/watchserver.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libsowatch/watchserver.cpp b/libsowatch/watchserver.cpp
index 8d00088..942131f 100644
--- a/libsowatch/watchserver.cpp
+++ b/libsowatch/watchserver.cpp
@@ -26,6 +26,8 @@ void WatchServer::addProvider(NotificationProvider *provider)
connect(provider, SIGNAL(notification(Notification)), SLOT(notificationEmitted(Notification)));
connect(provider, SIGNAL(unreadCountChanged(Notification::Type)), SLOT(unreadCountUpdated(Notification::Type)));
+ connect(provider, SIGNAL(incomingCall(QString)), SLOT(incomingCall(QString)));
+ connect(provider, SIGNAL(endIncomingCall()), SLOT(endIncomingCall()));
_providers.append(provider);
}
@@ -85,3 +87,13 @@ void WatchServer::unreadCountUpdated(Notification::Type type)
}
_watch->updateNotificationCount(type, count);
}
+
+void WatchServer::incomingCall(const QString &displayText)
+{
+ qDebug() << "Incoming call" << displayText;
+}
+
+void WatchServer::endIncomingCall()
+{
+ qDebug() << "End incoming call";
+}