diff options
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); } |