566
@log_call(logger.debug)
567
@method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
568
def query_bookmark_extension(self):
569
"""Check if the extension to sync bookmarks is installed."""
570
d = self.backend.query_bookmark_extension()
571
d.addCallback(self.QueryBookmarksResult)
572
d.addErrback(self.transform(self.QueryBookmarksError))
574
@log_call(logger.debug)
575
@signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="b")
576
def QueryBookmarksResult(self, enabled):
577
"""The bookmark extension is or is not installed."""
579
@log_call(logger.error)
580
@signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="a{ss}")
581
def QueryBookmarksError(self, error):
582
"""Problem getting the status of the extension."""
586
@log_call(logger.info)
587
@method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
588
def install_bookmarks_extension(self):
589
"""Install the extension to sync bookmarks."""
590
d = self.backend.install_bookmarks_extension()
591
d.addCallback(lambda _: self.InstallBookmarksSuccess())
592
d.addErrback(self.transform(self.InstallBookmarksError))
594
@log_call(logger.info)
595
@signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="")
596
def InstallBookmarksSuccess(self):
597
"""The extension to sync bookmarks has been installed."""
599
@log_call(logger.error)
600
@signal(dbus_interface=DBUS_PREFERENCES_IFACE, signature="a{ss}")
601
def InstallBookmarksError(self, error):
602
"""Problem installing the extension to sync bookmarks."""
606
566
@log_call(logger.info)
607
567
@method(dbus_interface=DBUS_PREFERENCES_IFACE, in_signature="")
608
568
def shutdown(self):