Qmmp
Public Slots | Signals | Public Member Functions | Static Public Member Functions
MediaPlayer Class Reference

#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:
parentParent object

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:
enabledNew state of this option (true - no playlist advance, false - normal playlist behaviour)
void play ( qint64  offset = -1) [slot]

Starts playback.

Returns playlist manager pointer

void previous ( ) [slot]

Sets previous playlist item for playing.

void repeatableChanged ( bool  enabled) [signal]

Tracks current track repeat state;

Parameters:
enabledNew 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:
enableState of the 'No playlist advance' option (true - enabled, false - normal playback)
void setRepeatable ( bool  enable) [slot]

Toggles the current track repeat.

Parameters:
enableRepeate 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:
 All Classes Functions Variables Enumerations Enumerator