/**************************************************************************
KitchenAlert
- Copyright (C) 2010 Heli Hyvättinen
+ Copyright (C) 2010-2011 Heli Hyvättinen
This file is part of KitchenAlert.
#define SELECTSOUNDDIALOG_H
#include <QDialog>
+#include <QMediaPlayer>
namespace Ui {
class SelectSoundDialog;
}
+/*! The class for sound selection dialog of KitchenAlert'
+
+ @author Heli Hyvättinen
+ @date 2011-04-27
+ @version 0.3.0
+
+The class for sound selection dialog in KitchenAlert.
+
+*/
+
class SelectSoundDialog : public QDialog
{
Q_OBJECT
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();
+ void testSound();
private:
Ui::SelectSoundDialog *ui;
+
+ QMediaPlayer player;
+ bool isTesting_;
};
#endif // SELECTSOUNDDIALOG_H