# Class e.p.b.m.a.TrackModel(Model):

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

Known subclasses: elisa.plugins.coherence.models.UpnpTrackModel, elisa.plugins.daap.models.DaapSongModel, elisa.plugins.ipod.models.IpodSongModel, elisa.plugins.ipod.models.IpodTrackModel, elisa.plugins.yesfm.models.TrackModel

Representation of an audio track on an album.

Instance Variables | title | the title of the track (type: `unicode` )
| artist | the name of the artist of the track (type: `unicode` )
| duration | the duration of the track (in seconds) (type: `int` )
| track_number | the number of the track on the album (type: `int` )
| playable_uri | the URI to query the resource provider with to get a playable model containing the real URI of the audio file (type: `elisa.core.media_uri.MediaUri` )
| album | album containing the track (type: `elisa.plugins.base.models.audio.AlbumModel` )

Line # | Kind | Name | Docs
--- | --- | --- | ---
100 | Method | __init__ | Undocumented
109 | Method | get_album | Return a deferred that will return the album containing the track as an
118 | Method | get_artists | Return a deferred that will return the list of artist names for the
127 | Method | get_playable_model | Return a deferred that will return an instance of

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

def __init__(self):
overrides elisa.core.utils.bindable.Bindable.__init__
overridden in elisa.plugins.ipod.models.IpodSongModel, elisa.plugins.ipod.models.IpodTrackModel, elisa.plugins.yesfm.models.TrackModel
Undocumented
def get_album(self):
Return a deferred that will return the album containing the track as an instance of `elisa.plugins.base.models.audio.AlbumModel`.

Returns | (type: `elisa.core.utils.defer.Deferred` )

def get_artists(self):
overridden in elisa.plugins.yesfm.models.TrackModel
Return a deferred that will return the list of artist names for the track as `unicode` instances.

Returns | (type: `elisa.core.utils.defer.Deferred` )

def get_playable_model(self):
overridden in elisa.plugins.yesfm.models.TrackModel
Return a deferred that will return an instance of `elisa.plugins.base.models.media.PlayableModel` for the track.

Returns | (type: `elisa.core.utils.defer.Deferred` )