org.qtunes.db
Interface ManualPlaylist

All Superinterfaces:
Playlist, java.io.Serializable
All Known Implementing Classes:
ManualPlaylistImpl, PlayerPlaylist

public interface ManualPlaylist
extends Playlist

A Simple Playlist that has a manually managed list of tracks. The list may contain duplicates and the order is, like any list, the order in which the items are added.


Method Summary
 void add(Track track)
          Add the specified Track to the Playlist.
 void add(Track track, int index)
          Add the specified Track to the Playlist.
 void addAll(Playlist playlist)
          Add the tracks from the specified Playlist
 void addAll(Playlist playlist, int index)
          Add the specified tracks to this Playlist at the specified point
 void clear()
          Clear the Playlist
 void mergeAll(Playlist playlist)
          Add the specified tracks to this Playlist, but only if they're not duplicates.
 void mergeAll(Playlist playlist, int index)
          Add the specified tracks to this Playlist at the specified point, but only if they're not duplicates
 Track remove(int index)
          Remove the Track at the specified position in the Playlist
 void removeAll(java.util.BitSet indices)
          Remove tracks at the specified indices from this Playlist
 void removeAll(Playlist playlist)
          Remove all tracks from the specified Playlist from this Playlist
 boolean removeTrack(Track track)
          Remove all occurances of the specified Track from the Playlist
 
Methods inherited from interface org.qtunes.db.Playlist
getName, getRevision, getTracks, getUniqueID, setName, size, sort
 

Method Detail

addAll

void addAll(Playlist playlist)
Add the tracks from the specified Playlist

Parameters:
playlist - the tracks to add

mergeAll

void mergeAll(Playlist playlist)
Add the specified tracks to this Playlist, but only if they're not duplicates.

Parameters:
playlist - the tracks to add

addAll

void addAll(Playlist playlist,
            int index)
Add the specified tracks to this Playlist at the specified point

Parameters:
playlist - the tracks to add
index - the insertion position in the list

mergeAll

void mergeAll(Playlist playlist,
              int index)
Add the specified tracks to this Playlist at the specified point, but only if they're not duplicates

Parameters:
playlist - the tracks to add
index - the insertion position in the list

add

void add(Track track)
Add the specified Track to the Playlist.

Parameters:
track - the Track to add

add

void add(Track track,
         int index)
Add the specified Track to the Playlist.

Parameters:
track - the Track to add
index - the insertion position in the list

clear

void clear()
Clear the Playlist


remove

Track remove(int index)
Remove the Track at the specified position in the Playlist


removeTrack

boolean removeTrack(Track track)
Remove all occurances of the specified Track from the Playlist


removeAll

void removeAll(Playlist playlist)
Remove all tracks from the specified Playlist from this Playlist


removeAll

void removeAll(java.util.BitSet indices)
Remove tracks at the specified indices from this Playlist