コード例 #1
0
ファイル: buddy.py プロジェクト: Kiy4h/turtleart-activity
    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)
コード例 #2
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)
コード例 #3
0
ファイル: buddy.py プロジェクト: Kiy4h/turtleart-activity
 def _sync_properties(self):
     conn_watcher = connection_watcher.get_instance()
     for connection in conn_watcher.get_connections():
         self._sync_properties_on_connection(connection)
コード例 #4
0
 def _sync_properties(self):
     conn_watcher = connection_watcher.get_instance()
     for connection in conn_watcher.get_connections():
         self._sync_properties_on_connection(connection)