Merge remote branch 'justin/master'
[soundwave.git] / player.h
blob9ef8ef1b6332c20959863bac11aef92e3e7f91ed
1 #ifndef SOUNDWAVE_PLAYER_H
2 #define SOUNDWAVE_PLAYER_H
4 #include <QProcess>
5 #include <QTemporaryFile>
6 #include <QThread>
7 #include <QUrl>
9 class Player : public QThread
11 public:
12 Player( QUrl url );
13 Player( QByteArray song );
15 // tells the thread to exit
16 void stop();
18 protected:
19 virtual void run();
21 private:
22 int stop_flag;
23 QString arg;
25 QProcess *p;
26 QTemporaryFile file;
29 #endif // SOUNDWAVE_PLAYER_H