+
+
+class DelayEnableContactIntegration(object):
+
+ def __init__(self, protocolName):
+ self.__enableSystemContactSupport = telepathy_utils.EnableSystemContactIntegration(
+ protocolName
+ )
+ self.__delayedEnable = gobject_utils.Async(self._on_delayed_enable)
+
+ def start(self):
+ self.__delayedEnable.start()
+
+ def stop(self):
+ self.__delayedEnable.cancel()
+
+ @misc_utils.log_exception(_moduleLogger)
+ def _on_delayed_enable(self):
+ try:
+ self.__enableSystemContactSupport.start()
+ except dbus.DBusException, e:
+ _moduleLogger.info("Contact integration seems to not be supported (%s)" % e)