X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fselectsounddialog.h;h=5ed0842ab61e8bf1bcfe3926709e9965be451c64;hb=1b7058d42a0dd918569cc049ec174da5dd6b65fe;hp=818d3e5db6c7b693bdfef8850fd8788368fd0bf7;hpb=5342eb76d3508d70aadc1b2299d15e8234856561;p=kitchenalert diff --git a/src/selectsounddialog.h b/src/selectsounddialog.h index 818d3e5..5ed0842 100644 --- a/src/selectsounddialog.h +++ b/src/selectsounddialog.h @@ -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,6 +28,7 @@ #define SELECTSOUNDDIALOG_H #include +#include namespace Ui { class SelectSoundDialog; @@ -36,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. @@ -50,14 +51,22 @@ 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(); + void testSound(); private: Ui::SelectSoundDialog *ui; + + QMediaPlayer player; + bool isTesting_; }; #endif // SELECTSOUNDDIALOG_H