completed, in_progress, queued,
bytes_downloaded, bytes_updated, bytes_per_second,
feed_updated):
- pass
+ logger.info(feed_updated)
+ total = completed + in_progress + queued
+ root.updateProgress(total, completed)
def update_started(self):
root.updateStarted()
def markAllAsRead(self, key):
feed = listing.getFeed(key)
feed.markAllAsRead()
+ listing.updateUnread(key)
@QtCore.Slot(str, str)
def setEntryRead(self, key, articleid):
# listen on dbus for download update progress
bus = dbus.SessionBus()
-# bus.add_signal_receiver(handler_function=self.update_progress,
-# bus_name=None,
-# signal_name='UpdateProgress',
-# dbus_interface='org.marcoz.feedingit',
-# path='/org/marcoz/feedingit/update')
+ bus.add_signal_receiver(handler_function=controller.update_progress,
+ bus_name=None,
+ signal_name='UpdateProgress',
+ dbus_interface='org.marcoz.feedingit',
+ path='/org/marcoz/feedingit/update')
bus.add_signal_receiver(handler_function=controller.update_started,
bus_name=None,
signal_name='UpdateStarted',