Web page: current version no longer called "new"
[kitchenalert] / src / selectsounddialog.h
index 24bbc9c..5ed0842 100644 (file)
@@ -1,7 +1,7 @@
 /**************************************************************************
         KitchenAlert
 
-        Copyright (C) 2010  Heli Hyvättinen
+        Copyright (C) 2010-2011  Heli Hyvättinen
         
         This file is part of KitchenAlert.
 
@@ -28,7 +28,7 @@
 #define SELECTSOUNDDIALOG_H
 
 #include <QDialog>
-#include <Phonon>
+#include <QMediaPlayer>
 
 namespace Ui {
     class SelectSoundDialog;
@@ -37,8 +37,8 @@ namespace Ui {
 /*! The class for sound selection dialog of KitchenAlert'
 
   @author Heli Hyvättinen
-  @date 2010-07-20
-  @version 0.1
+  @date 2011-04-27
+  @version 0.3.0
 
 The class for sound selection dialog in KitchenAlert.
 
@@ -51,8 +51,12 @@ class SelectSoundDialog : public QDialog
 public:
     explicit SelectSoundDialog(QWidget *parent = 0);
     ~SelectSoundDialog();
+
     QString getSoundFileName();
+    /*! returns the filename for custom sound the user has chosen in the dialog */
+
     bool isDefaultSoundChecked();
+    /*! Returns whether "use default sound" was checked by the user in the dialog */
 
 public slots:
     void browse();
@@ -60,8 +64,9 @@ public slots:
 
 private:
     Ui::SelectSoundDialog *ui;
-    Phonon::MediaObject* pSound_;
 
+    QMediaPlayer player;
+    bool isTesting_;
 };
 
 #endif // SELECTSOUNDDIALOG_H