sAlarm 0.5
salarm/optionsdialog.h
00001 /*
00002  * sAlarm - Scheduler
00003  * http://salarm.seberm.com
00004  *
00005  * Copyright (C) 2009-2010 Otto Sabart <seberm[at]gmail[dot]com>
00006  * 
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * version 3 as published by the Free Software Foundation.
00010  * 
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 
00022 #ifndef OPTIONSDIALOG_H
00023 #define OPTIONSDIALOG_H
00024 
00025 #include <QDialog>
00026 #include <QMessageBox>
00027 
00028 #include "database.h"
00029 
00030 
00031 namespace Ui {
00032         
00033     class OptionsDialog;
00034 }
00035 
00036 
00038 class OptionsDialog : public QDialog {
00039         
00040     Q_OBJECT
00041         
00042         public:
00043         
00045 
00048                 OptionsDialog(QWidget *parent = 0);
00049                 
00051                 ~OptionsDialog();
00052         
00053         protected:
00054                 
00056                 void changeEvent(QEvent *e);
00057         
00058         private:
00059                 
00061                 Ui::OptionsDialog *m_ui;
00062         
00063         private slots:
00064                 
00066                 void databaseChanged(int);
00067                 
00069                 void dialogAccepted();
00070                 
00072                 void setExpiredScheduleColor();
00073                 
00075 
00078                 void addAlarmSound();
00079                 
00081 
00085                 void removeAlarmSound();
00086         
00087 };
00088 
00089 #endif // OPTIONSDIALOG_H
 All Classes Functions Enumerations