From 9dac6d187810915895ac9f7a6b739ff818336b35 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 5 Sep 2010 04:36:48 +0200 Subject: Initial import. --- player.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 player.h (limited to 'player.h') 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 +#include +#include + +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 -- cgit v1.2.3