MediaPlayer Class Reference

The MediaPlayer class provides a simple way to use SoundCore and PlayListModel together. More...

#include <mediaplayer.h>

List of all members.

Public Slots

void play (qint64 offset=-1)
void stop ()
void next ()
void previous ()
void setRepeatable (bool enable)
void setNoPlaylistAdvance (bool enable)

Signals

void repeatableChanged (bool enabled)
void noPlaylistAdvanceChanged (bool enabled)

Public Member Functions

 MediaPlayer (QObject *parent=0)
 ~MediaPlayer ()
PlayListManagerplayListManager ()
bool isRepeatable () const
bool isNoPlaylistAdvance () const

Static Public Member Functions

static MediaPlayerinstance ()


Detailed Description

The MediaPlayer class provides a simple way to use SoundCore and PlayListModel together.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

MediaPlayer ( QObject *  parent = 0  ) 

Object constructor,

Parameters:
parent Parent object

~MediaPlayer (  ) 

Destructor


Member Function Documentation

static MediaPlayer* instance (  )  [static]

Returns a pointer to the object's instance.

bool isNoPlaylistAdvance (  )  const

Returns true if "No playlist advance" option is enabled, otherwise returns false

bool isRepeatable (  )  const

Returns true if "Repeate Track" option is enabled, otherwise returns false

void next (  )  [slot]

Sets next playlist item for playing.

void noPlaylistAdvanceChanged ( bool  enabled  )  [signal]

Emitted when state of the "No playlist advance" option changes.

Parameters:
enabled New state of this option (true - no playlist advance, false - normal playlist behaviour)

void play ( qint64  offset = -1  )  [slot]

Starts playback.

PlayListManager* playListManager (  ) 

Returns playlist manager pointer

void previous (  )  [slot]

Sets previous playlist item for playing.

void repeatableChanged ( bool  enabled  )  [signal]

Tracks current track repeat state;

Parameters:
enabled New repeate state of the current track (true - enabled, false - disabled)

void setNoPlaylistAdvance ( bool  enable  )  [slot]

When finished playing a song, don't automatically advance to the next

Parameters:
enable State of the 'No playlist advance' option (true - enabled, false - normal playback)

void setRepeatable ( bool  enable  )  [slot]

Toggles the current track repeat.

Parameters:
enable Repeate state of the current track (true - to repeat, false - to stop repeating)

void stop (  )  [slot]

Stops playback.


The documentation for this class was generated from the following file:

Generated on Thu Nov 10 20:39:11 2011 for Qmmp by  doxygen 1.5.9