#include <player.h>
Inheritance diagram for Player::

Public Types | |
| enum | LoopType { None = 0, Song, Playlist, Random } |
Public Slots | |
| void | toggleListView () |
| void | handleButtons () |
| void | removeCurrent () |
| void | back () |
| void | stop () |
| void | play () |
| void | play (const PlaylistItem &item) |
| void | playpause () |
| void | forward (bool allowLoop=true) |
| void | skipTo (int msec) |
| void | loop () |
| void | loop (int i) |
| void | setVolume (int) |
| void | playCurrent () |
| void | newCurrent () |
Signals | |
| void | timeout () |
| void | stopped () |
| void | playing () |
| void | paused () |
| void | loopTypeChange (int t) |
| void | playlistShown () |
| void | playlistHidden () |
| void | newSongLen (int mins, int sec) |
| void | newSong () |
| void | changed () |
| void | aboutToOpen (PlaylistItem item) |
| void | volumeChanged (int) |
Public Methods | |
| Player (QObject *parent=0) | |
| ~Player () | |
| QString | lengthString (int _position=-1) |
| int | loopStyle () const |
| int | volume () const |
| int | getTime () const |
| int | getLength () |
| bool | isPlaying () |
| bool | isPaused () |
| bool | isStopped () |
| PlaylistItem | current () const |
| void | openFile (const KURL &file, bool purge=true, bool autoplay=false) |
| Engine * | engine () const |
Friends | |
| class | PlaylistItemData |
| class | PlaylistNotifier |
|
|
"None": Plays the playlist entries sequentially until the end of the playlist. "Song": Repeats the current playlist entry indefinitely. "Playlist": Plays the playlist entries sequentially, until end of the playlist. Noatun will then restart playback at the first song. "Random": Plays the entries of the playlist in a random, non-repeating order. Playback will continue indefinitely. |
|
|
|
|
|
|
|
|
called when we're about to load item, but it hasn't been yet this is used for implementing new protocols |
|
|
go back a track |
|
|
Called when a new song is about to be played, but hasn't started. player->current() is the next song |
|
|
get the current playlist this may be null And this may not be necessarily an item allocated by playlist() |
|
|
|
|
|
go forward a track |
|
|
the track-length in milliseconds |
|
|
the position in milliseconds |
|
|
force the playing/paused/stopped/playlist shown signals to be sent out, also, you can send this if you want to make all the UIs re-display the current item |
|
|
true if paused |
|
|
true if we're playing |
|
|
true if stopped |
|
|
returns a string with the time that can be used in the UI: CC:CC/LL:LL (mm:ss) |
|
|
set the type of looping |
|
|
goes to the next type of looping |
|
|
returns the LoopType enum |
|
|
when the type of looping is changed |
|
|
For internal use only. |
|
|
when a new song is currently playing |
|
|||||||||||||||
|
called at the same time as newSong, but maybe easier to work with |
|
||||||||||||||||||||||
|
load the
|
|
|
|
|
|
play the given file |
|
|
start playing |
|
|
For internal use only. |
|
|
|
|
|
the playlist is hidden |
|
|
the playlist is made visible |
|
|
start playing, or pause if we're currently playing |
|
|
remove current from playlist |
|
|
|
|
|
skip to the position, unit is milliseconds |
|
|
stop playing |
|
|
|
|
|
Tells you to update the seekbar, volume and title. |
|
|
show or hide the playlist |
|
|
the volume from 0-100 use volume() instead |
|
|
|
|
|
|
|
|
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001