Version 0.2.1
[kitchenalert] / src / alertsound.h
old mode 100644 (file)
new mode 100755 (executable)
index 19f4a59..6e7dec2
@@ -1,7 +1,7 @@
 /**************************************************************************
         KitchenAlert
 
-        Copyright (C) 2010  Heli Hyvättinen
+        Copyright (C) 2010-2011  Heli Hyvättinen
 
         This file is part of KitchenAlert.
 
 
 #include <QObject>
 
-
-
-#include <Phonon>
+#include <QMediaPlayer>
 
 
 /*! Class for playing the alert sound'
 
   @author Heli Hyvättinen
-  @date 2010-07-20
-  @version 0.1
+  @date 2011-03-29
+  @version 0.2.1
 
 Class for playing (and stopping) the alert sound.
 
@@ -50,6 +48,8 @@ class AlertSound : public QObject
 public:
     explicit AlertSound(QObject *parent = 0);
 
+    virtual ~AlertSound();
+
 signals:
 
 public slots:
@@ -62,14 +62,15 @@ public slots:
     /*! 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_;
+   QMediaPlayer *pSound_;
+   QString defaultsound_;
 
 
 };