diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-24 20:52:17 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-24 20:52:17 +0200 |
commit | a1ec50943454ba4674c8c5e5d5dadcdbd414b111 (patch) | |
tree | 163aed51758c98fa6feec35a344aa8b5095c32e5 /meegohandsetnotification/meegohandsetnotificationprovider.cpp | |
parent | cba26597f1c09764d37be0d13863ec5d5c340da0 (diff) | |
download | sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.tar.gz sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.zip |
Incoming phone calls working!
Diffstat (limited to 'meegohandsetnotification/meegohandsetnotificationprovider.cpp')
-rw-r--r-- | meegohandsetnotification/meegohandsetnotificationprovider.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/meegohandsetnotification/meegohandsetnotificationprovider.cpp b/meegohandsetnotification/meegohandsetnotificationprovider.cpp index fc84e46..0297ebb 100644 --- a/meegohandsetnotification/meegohandsetnotificationprovider.cpp +++ b/meegohandsetnotification/meegohandsetnotificationprovider.cpp @@ -22,10 +22,8 @@ MeegoHandsetNotificationProvider::MeegoHandsetNotificationProvider(QObject *pare QDBusConnection::sessionBus().registerService("com.javispedro.sowatch.MeegoHandsetNotificationSink"); QDBusConnection::sessionBus().registerObject("/meegohandsetnotificationsink", _sink); - connect(_sink, SIGNAL(incomingNotification(sowatch::Notification)), - SLOT(sinkNotification(sowatch::Notification))); - connect(_sink, SIGNAL(countsChanged(sowatch::Notification::Type)), - SLOT(sinkUnreadCountChanged(sowatch::Notification::Type))); + connect(_sink, SIGNAL(incomingNotification(sowatch::Notification*)), + SLOT(newNotification(sowatch::Notification*))); _manager->registerSink("com.javispedro.sowatch.MeegoHandsetNotificationSink", "/meegohandsetnotificationsink"); } @@ -35,17 +33,8 @@ MeegoHandsetNotificationProvider::~MeegoHandsetNotificationProvider() } -int MeegoHandsetNotificationProvider::getCount(sowatch::Notification::Type type) -{ - return _sink->getCount(type); -} - -void MeegoHandsetNotificationProvider::sinkNotification(const Notification &n) -{ - emit notification(n); -} -void MeegoHandsetNotificationProvider::sinkUnreadCountChanged(Notification::Type type) +void MeegoHandsetNotificationProvider::newNotification(Notification* n) { - emit unreadCountChanged(type); + emit incomingNotification(n); } |