OTHER: Make pause button toggle play/pause

This commit is contained in:
Thomas Frauendorfer 2008-05-17 04:48:48 +02:00
parent 4eb7762009
commit bece172e92
7 changed files with 60 additions and 21 deletions

View file

@ -19,8 +19,10 @@
class XClient;
#include <xmmsclient/xmmsclient++.h>
#include <QObject>
/**
* @class XPlayback
* @brief Thin wrapper around Xmms::Playback providing QT Signals and Slots
@ -35,6 +37,7 @@ class XPlayback : public QObject {
public slots:
void play ();
void pause ();
void toggle_pause ();
void stop ();
void prev ();
void next ();
@ -42,8 +45,16 @@ class XPlayback : public QObject {
void seekMs (uint milliseconds);
void seekMsRel (int milliseconds);
bool playback_status (const Xmms::Playback::Status &status);
void on_connect (XClient *);
signals:
void playbackStatusChanged (Xmms::Playback::Status status);
private:
XClient *m_client;
Xmms::Playback::Status m_status;
};
#endif