summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSoundPlayer.h')
-rw-r--r--Swift/QtUI/QtSoundPlayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSoundPlayer.h b/Swift/QtUI/QtSoundPlayer.h
index e0ccf18..b9109a7 100644
--- a/Swift/QtUI/QtSoundPlayer.h
+++ b/Swift/QtUI/QtSoundPlayer.h
@@ -2,6 +2,7 @@
#include "Swift/Controllers/SoundPlayer.h"
+#include <QObject>
namespace Phonon {
class AudioOutput;
@@ -9,7 +10,8 @@ namespace Phonon {
}
namespace Swift {
- class QtSoundPlayer : public SoundPlayer{
+ class QtSoundPlayer : public QObject, public SoundPlayer {
+ Q_OBJECT
public:
QtSoundPlayer();
~QtSoundPlayer();
@@ -17,5 +19,7 @@ namespace Swift {
private:
Phonon::AudioOutput* audioOutput_;
Phonon::MediaObject* messageReceived_;
+ private slots:
+ void handleFinished();
};
}