Add signal to indicate that the metadata for books on the connected device is available

This commit is contained in:
Charles Haley 2011-04-18 19:23:53 +01:00
parent b368790f13
commit 204b952892

View File

@ -607,6 +607,8 @@ class DeviceMenu(QMenu): # {{{
class DeviceMixin(object): # {{{
device_metadata_available = pyqtSignal()
def __init__(self):
self.device_error_dialog = error_dialog(self, _('Error'),
_('Error communicating with device'), ' ')
@ -791,6 +793,7 @@ class DeviceMixin(object): # {{{
self.sync_news()
self.sync_catalogs()
self.refresh_ondevice()
self.device_metadata_available.emit()
def refresh_ondevice(self, reset_only = False):
'''