#include <track.h>
Public Member Functions | |
| TrackPtrList () | |
| void | setComparator (const TrackComparatorPtr &comparator) |
| const TrackComparatorPtr & | getComparator () const |
| void | setComparator (TrackComparator *comparator) |
| virtual int | compareItems (QPtrCollection::Item s1, QPtrCollection::Item s2) |
| bool | hasDirtyTracks () |
| bool | hasRecentlyPlayedTracks () |
| bool | removeAllRefs (itunesdb::Track *track) |
| TrackPtrList * | getTracksBy (TrackPredicate &predicate, itunesdb::TrackPtrList &buffer) const |
| Track * | findFirstTrackBy (TrackPredicate &predicate) const |
| template<class JavaLikeTrackIterator> | |
| void | addAll (JavaLikeTrackIterator trackIter) |
|
|
Default constructor. |
|
||||||||||
|
Adds all tracks delivered by the given Iterator. |
|
||||||||||||
|
Compares two tracks by the comparator set by |
|
|
Returns the first Track where the given predicate returned true The given trackpredicate needs to contain a method that gets a track, and returns a bool if it's the desired track
|
|
|
Returns the currently used comparator for sorting. |
|
||||||||||||
|
Returns all the Tracks where the given predicate returned true |
|
|
Returns true if this list contains tracks not in sync with the database. |
|
|
Returns true if this list contains tracks being played after the last sync. |
|
|
removes all references to the given track. |
|
|
This method sets the comparator that compares two tracks for sorting. TrackPtrList owns the given pointer so it may be deallocated at any time.
|
|
|
This method sets the comparator that compares two tracks for sorting. TrackPtrList owns the given pointer so it may be deallocated at any time.
|
1.4.6