Just backing up the current sources...
[kitchenalert] / src / alertsound.h
index d754087..7866d71 100644 (file)
 
 
 
- #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.
 
@@ -51,6 +50,8 @@ class AlertSound : public QObject
 public:
     explicit AlertSound(QObject *parent = 0);
 
+    virtual ~AlertSound();
+
 signals:
 
 public slots:
@@ -60,11 +61,18 @@ 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_;
 
 
 };