Class e.p.b.m.m.PlaylistModel(Model, notifying_list.List):

Part of elisa.plugins.base.models.media View In Hierarchy

A playlist model is a list of models that can be played by a player. The models stored in this list *must* implement the get_playable_model method, like elisa.plugins.base.models.audio.TrackModel and elisa.plugins.base.models.video.VideoModel.
Instance Variablesallow_previousif it is possible to set as current the previous track in the playlist relatively to the current one by calling the method 'previous_track' (type: bool )
allow_nextif it is possible to set as current the next track in the playlist relatively to the current one by calling the method 'next_track' (type: bool )
allow_jumpif it is possible to set as current any track knowing its index in the playlist by calling the method 'set_current_index' (type: bool )
current_trackplayable model corresponding to the current track in the playlist; it differs from the model stored in the playlist because it is not the model itself but only the shell containing the necessary playback information (type: elisa.plugins.base.models.media.PlayableModel )
current_indexindex in the playlist of the current model being played (type: int )
Line # Kind Name Docs
99 Method __init__ Constructor. Initialize all the fields.
110 Method previous_track Decrement current_index of the playlist and return the
123 Method next_track Increment current_index of the playlist and return the
136 Method set_current_index Set current_index of the playlist and return the
153 Method _retrieve_playable_model_at Undocumented

Inherited from Bindable (via Model):

Line # Kind Name Docs
34 Method bind Bind a local attribute to destination_attribute of
73 Method unbind Remove the binding of attribute to destination_attribute of
104 Method unbind_object Remove all the bindings you have for a certain destination_object.
118 Method __setattr__ Undocumented
136 Method __delattr__ Undocumented

Inherited from List:

Line # Kind Name Docs
56 Method __setitem__ Undocumented
64 Method __delitem__ Undocumented
73 Method append Undocumented
79 Method extend Undocumented
86 Method insert Undocumented
93 Method pop Undocumented
103 Method remove Undocumented
109 Method reverse Undocumented
114 Method sort Undocumented
119 Method __iadd__ Undocumented
127 Method __imul__ Undocumented
135 Method __setslice__ Undocumented
146 Method __delslice__ Undocumented
def __init__(self):
Constructor. Initialize all the fields.
def previous_track(self):
Decrement current_index of the playlist and return the PlayableModel located at the new position in the playlist.
Returns (type: twisted.internet.defer.Deferred )
def next_track(self):
Increment current_index of the playlist and return the PlayableModel located at the new position in the playlist.
Returns (type: twisted.internet.defer.Deferred )
def set_current_index(self, index):
Set current_index of the playlist and return the PlayableModel located at the new position in the playlist.
Returns (type: twisted.internet.defer.Deferred )
def _retrieve_playable_model_at(self, index):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.