diff options
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/player.h b/player.h new file mode 100644 index 0000000..12437d4 --- /dev/null +++ b/player.h @@ -0,0 +1,36 @@ +#ifndef PLAYER_H +#define PLAYER_H + +#include <QObject> +#include <phonon/mediaobject.h> +#include <phonon/audiooutput.h> + +class Player : public QObject { + Q_OBJECT + + private: + Phonon::MediaObject* mo; + Phonon::AudioOutput* ao; + + private slots: + void tick(qint64 time); + void newlength(qint64 length); + + public: + Player(); + + public slots: + void prev(); + void pause(); + void play(); + void next(); + void seek(int pos); + + signals: + void changed_track(const QUrl& track); + void changed_state(bool playing); + void changed_pos(int pos); + void changed_length(int length); +}; + +#endif |