- #include <Phonon>
-
+#include <Phonon>
/*! Class for playing the alert sound'
@author Heli Hyvättinen
- @date 2010-06-26
- @version 0.09
+ @date 2010-09-27
+ @version 0.2.0
Class for playing (and stopping) the alert sound.
public:
explicit AlertSound(QObject *parent = 0);
+ virtual ~AlertSound();
+
signals:
public slots:
/*! Stops the sound from playing */
void stop();
+ /*! Changes the sound file (both current and saved in settings) */
+ void setSound(QString filename);
+
+ /*! Switches to using the default sound and saves this behaviour in settings */
+ void setDefaultSound();
+
private:
Phonon::MediaObject *pSound_;
+ QString defaultsound_;
};