Added spanish translation
[timedsilencer] / newalarmdlg.h
1 /*
2  * This file is part of TimedSilencer.
3  *
4  *  TimedSilencer is free software: you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation, either version 3 of the License, or
7  *  (at your option) any later version.
8  *
9  *  TimedSilencer is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with TimedSilencer.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef NEWALARMDLG_H
19 #define NEWALARMDLG_H
20
21 #include <QDialog>
22 #include <QVariant>
23
24 struct QMaemo5ValueButton;
25 struct QAction;
26 struct QCheckBox;
27 struct QPushButton;
28 struct ProfileEvent;
29 struct QDialogButtonBox;
30
31 class NewAlarmDlg : public QDialog
32 {
33   Q_OBJECT
34 public:
35   explicit NewAlarmDlg(QWidget *parent = 0, QByteArray edited_id = QByteArray());
36   ~NewAlarmDlg();
37
38 signals:
39   void newEvent(QVariant event);
40   void editedEvent(QByteArray id, bool new_status);
41   void deletedEvent(QByteArray id);
42
43 public slots:
44   ProfileEvent* saveEvent();
45   void saveAndClose();
46   void deleteAndClose();
47
48 private:
49   QMaemo5ValueButton *from_button, *to_button, *repeat_button;
50   QCheckBox *cb_enable;
51   QPushButton *delete_btn;
52   QPushButton *done_btn;
53   QDialogButtonBox *button_box;
54   ProfileEvent *pe;
55 };
56
57 #endif // NEWALARMDLG_H