repo.or.cz
/
soundwave.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge remote branch 'justin/master'
[soundwave.git]
/
player.h
blob
9ef8ef1b6332c20959863bac11aef92e3e7f91ed
1
#ifndef SOUNDWAVE_PLAYER_H
2
#define SOUNDWAVE_PLAYER_H
3
4
#include <QProcess>
5
#include <QTemporaryFile>
6
#include <QThread>
7
#include <QUrl>
8
9
class
Player
:
public
QThread
10
{
11
public
:
12
Player
(
QUrl url
);
13
Player
(
QByteArray song
);
14
15
// tells the thread to exit
16
void
stop
();
17
18
protected
:
19
virtual
void
run
();
20
21
private
:
22
int
stop_flag
;
23
QString arg
;
24
25
QProcess
*
p
;
26
QTemporaryFile file
;
27
};
28
29
#endif
// SOUNDWAVE_PLAYER_H