summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-07-04 20:24:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-07-04 20:24:20 (GMT)
commit83ca0f4806ed30fb974420db4171201c451fb583 (patch)
tree0931883fcad6903bdaa5e81d743d42e5c43e2ec0 /Swift/QtUI/QtSoundPlayer.h
parent0bee0cc8ec06d3508934111c08140d435307798d (diff)
downloadswift-83ca0f4806ed30fb974420db4171201c451fb583.zip
swift-83ca0f4806ed30fb974420db4171201c451fb583.tar.bz2
Ding on new messages.
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();
};
}