Commit 2e51b9ca authored by Scott Wheeler's avatar Scott Wheeler

While porting things over it was useful for this to implement the Player

interface; it's not really useful anymore.

svn path=/trunk/kdemultimedia/juk/; revision=294323
parent f29cb326
......@@ -36,7 +36,6 @@ PlayerManager *PlayerManager::m_instance = 0;
PlayerManager::PlayerManager() :
QObject(0, "PlayerManager"),
Player(),
m_sliderAction(0),
m_playlistInterface(0),
m_statusLabel(0),
......
......@@ -31,7 +31,7 @@ class PlaylistInterface;
* the actions from the top-level mainwindow.
*/
class PlayerManager : public QObject, public Player
class PlayerManager : public QObject
{
Q_OBJECT
......@@ -42,29 +42,24 @@ protected:
public:
static PlayerManager *instance();
virtual bool playing() const;
virtual bool paused() const;
virtual float volume() const;
virtual long totalTime() const;
virtual long currentTime() const;
virtual int position() const;
bool playing() const;
bool paused() const;
float volume() const;
long totalTime() const;
long currentTime() const;
int position() const;
void setPlaylistInterface(PlaylistInterface *interface);
void setStatusLabel(StatusLabel *label);
public slots:
// implementations of the player interface
virtual void play(const QString &fileName = QString::null);
virtual void pause();
virtual void stop();
virtual void setVolume(float volume = 1.0);
virtual void seek(long seekTime);
virtual void seekPosition(int position);
// additional slots
void play(const QString &fileName = QString::null);
void pause();
void stop();
void setVolume(float volume = 1.0);
void seek(long seekTime);
void seekPosition(int position);
void seekForward();
void seekBack();
void playPause();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment