#include <playlist.h>
Inheritance diagram for Playlist::

Public Slots | |
| virtual void | showList ()=0 |
| virtual void | hideList ()=0 |
| virtual void | toggleList () |
Signals | |
| void | playCurrent () |
| void | listHidden () |
| void | listShown () |
Public Methods | |
| Playlist (QObject *parent, const char *name) | |
| virtual | ~Playlist () |
| virtual void | reset ()=0 |
| virtual void | clear ()=0 |
| virtual void | addFile (const KURL &, bool play=false)=0 |
| virtual PlaylistItem | next ()=0 |
| virtual PlaylistItem | nextSection () |
| virtual PlaylistItem | previous ()=0 |
| virtual PlaylistItem | previousSection () |
| virtual PlaylistItem | current ()=0 |
| virtual void | setCurrent (const PlaylistItem &)=0 |
| virtual PlaylistItem | getFirst () const=0 |
| virtual PlaylistItem | getAfter (const PlaylistItem &item) const=0 |
| virtual bool | listVisible () const=0 |
| int | handleArguments () |
| virtual QValueList< PlaylistItem > | select (const QStringList &keys, const QStringList &values, int limit=-1, bool exact=false, bool caseSensitive=false) |
| virtual QValueList< PlaylistItem > | select (const QString &key, const QString &value, int limit=-1, bool exact=false, bool caseSensitive=false) |
| QValueList< PlaylistItem > | select (const char *key, const char *value, int limit=-1, bool exact=false, bool caseSensitive=false) |
Do not, under any circumstances, call a Playlist method when you can call a Player method, unless, of course, you ARE the playlist.
|
|||||||||||||||
|
|
|
|
on playlist unload, your playlist must have current()==0 and emit playCurrent |
|
|||||||||||||||
|
add a file |
|
|
empty the list |
|
|
current item |
|
|
get the item after item |
|
|
get the first item |
|
|
do the KCmdLineArgs stuff |
|
|
hide it |
|
|
when the list is hidden |
|
|
when the list is shown |
|
|
is the view visible? |
|
|
cycle forward, return that |
|
|
cycle to next section, return that defaults to return next() |
|
|
when you want the engine to reload current() This is how your playlist forces noatun to play a new song |
|
|
cycle back, return that |
|
|
cycle to previous section, return that defaults to return previous() |
|
|
go to the front |
|
||||||||||||||||||||||||||||||||||||
|
exactly the same as the above, except converts the const char* to QString (utf8) |
|
||||||||||||||||||||||||||||||||||||
|
The default implementation will just call the above select. Of course, you're free to implement both of these (with different mechanisms if need be) for speed |
|
||||||||||||||||||||||||||||||||||||
|
return a list of songs in which at least one of the keys matches at least one of the values the default implementation will call getFirst() and getAfter() which could be potentially slow, depending how your playlist is designed. So you're free to reimplement this if you could do better A value of "" is equal to an unset value limit is the maximum amount of items to return, or -1 if you want as many as possible if exact is true, a match is only made if the string is identical to a value. if false a match is made if the string contains a value caseSensitive, if false, means that the given values are compared case insensitively to to the items in the playlist. The keys are always compared with case sensitivity |
|
|
set the current item |
|
|
show the list! |
|
|
toggle visibility |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001