1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 Playlist management
19 """
20
21 __maintainer__ = 'Philippe Normand <philippe@fluendo.com>'
22
23
24 from elisa.base_components.activity import Activity
25
26
27
28
29
30
31
33 """ Playlist
34
35 DOCME
36 """
37
39 """ Initialize the Component's instance variables
40 """
41 Activity.__init__(self)
42 self._history = []
43 self._current_uri = None
44 self.media_types = []
45 self.loading = False
46
47 - def loadmore(self, model, start=0, end=None):
48 """
49 Request new items to be loaded in the playlist.
50
51 @param model: DOCME
52 @type model: L{elisa.base_components.model.Model}
53 @param start: starting index
54 @type start: int
55 @param end: ending index, None means end of list
56 @type end: int or None
57 @rtype: L{twisted.internet.defer.Deferred}
58 """
59 return None
60
61
63 """ Empty the playlist of all its URIs.
64 """
65
66 - def add_uri(self, uri, position=-1):
67 """ Add an URI to the playlist.
68
69 @param uri: the uri to add. if uri is a list, it will be directly
70 added to the list model.
71 @type uri: L{elisa.core.media_uri.MediaUri} or list
72 @param position: position of the list to update, -1 means appending
73 to the end
74 @type position: int
75 """
76