Beispiel #1
0
    def __current_activity_changed_cb(self, buddy, pspec):
        conn_watcher = connection_watcher.get_instance()
        for connection in conn_watcher.get_connections():
            if self.props.current_activity is not None:
                activity_id = self.props.current_activity.activity_id
                room_handle = self.props.current_activity.room_handle
            else:
                activity_id = ''
                room_handle = 0

            connection[CONNECTION_INTERFACE_BUDDY_INFO].SetCurrentActivity(
                activity_id,
                room_handle,
                reply_handler=self.__set_current_activity_cb,
                error_handler=self.__error_handler_cb)
    def __current_activity_changed_cb(self, buddy, pspec):
        conn_watcher = connection_watcher.get_instance()
        for connection in conn_watcher.get_connections():
            if self.props.current_activity is not None:
                activity_id = self.props.current_activity.activity_id
                room_handle = self.props.current_activity.room_handle
            else:
                activity_id = ''
                room_handle = 0

            connection[CONNECTION_INTERFACE_BUDDY_INFO].SetCurrentActivity(
                activity_id,
                room_handle,
                reply_handler=self.__set_current_activity_cb,
                error_handler=self.__error_handler_cb)
Beispiel #3
0
 def _sync_properties(self):
     conn_watcher = connection_watcher.get_instance()
     for connection in conn_watcher.get_connections():
         self._sync_properties_on_connection(connection)
 def _sync_properties(self):
     conn_watcher = connection_watcher.get_instance()
     for connection in conn_watcher.get_connections():
         self._sync_properties_on_connection(connection)