def owner(self): user_struct = self.__container_interface.owner(self.__container_struct) if user_struct is not None: ui = _user.UserInterface() ui.add_ref(user_struct) return user.User(user_struct)
def track_creator(self, index): user_struct = self.__playlist_interface.track_creator( self.__playlist_struct, index) if user_struct is not None: ui = _user.UserInterface() ui.add_ref(user_struct) return user.User(user_struct)
def user(self, onload=None): user_struct = self.__session_interface.user(self.__session_struct) if user_struct is not None: ui = _user.UserInterface() ui.add_ref(user_struct) user_obj = user.User(user_struct) if onload != None: self._user_callbacks.add_callback(user_obj.is_loaded, onload, user_obj) return user_obj
def _track_created_changed(self, playlist, position, c_user, when, userdata): self._callbacks.track_created_changed(self._playlist, position, user.User(c_user), when)