From cba26597f1c09764d37be0d13863ec5d5c340da0 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 24 Sep 2011 00:31:46 +0200 Subject: new partially working incoming call plugin --- libsowatch/watchserver.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libsowatch/watchserver.cpp') 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"; +} -- cgit v1.2.3