author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /kalarmd/alarmdialog.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
-rw-r--r-- | kalarmd/alarmdialog.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h new file mode 100644 index 0000000..3155f18 --- a/dev/null +++ b/kalarmd/alarmdialog.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | This file is part of the KDE alarm daemon. | ||
3 | Copyright (c) 2000 Cornelius Schumacher <schumacher@kde.org> | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | */ | ||
23 | #ifndef ALARMDIALOG_H | ||
24 | #define ALARMDIALOG_H | ||
25 | |||
26 | |||
27 | |||
28 | #include <qdialog.h> | ||
29 | #include <qdatetime.h> | ||
30 | #include <qstring.h> | ||
31 | |||
32 | #include "sharp_char.h" | ||
33 | |||
34 | |||
35 | class QSpinBox; | ||
36 | class QLabel; | ||
37 | class QString; | ||
38 | |||
39 | class AlarmDialog : public QDialog { | ||
40 | Q_OBJECT | ||
41 | public: | ||
42 | AlarmDialog( QWidget *parent = 0, const char *name = 0 ); | ||
43 | virtual ~AlarmDialog(); | ||
44 | |||
45 | bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); | ||
46 | int getSuspendTime( ); | ||
47 | void setSuspendTime( int ); | ||
48 | void setServerNotification( bool b ); | ||
49 | |||
50 | public slots: | ||
51 | void slotOk(); | ||
52 | void slotSuspend(); | ||
53 | void reject () ; | ||
54 | void silent () ; | ||
55 | void accept(); | ||
56 | void suspend(); | ||
57 | void playSound (); | ||
58 | signals: | ||
59 | // void suspendSignal(int duration); | ||
60 | void addAlarm(const QDateTime &, const QString & ); | ||
61 | |||
62 | private: | ||
63 | int alarmCounter; | ||
64 | int mPauseCount; | ||
65 | int mSuspendCounter; | ||
66 | int maxAlarmReplay; | ||
67 | QTimer* playSoundTimer; | ||
68 | bool mStopAlarm; | ||
69 | bool mSilent; | ||
70 | bool mPlayWav; | ||
71 | bool mServerNotification; | ||
72 | QLabel* mMessage; | ||
73 | QLabel* mMissedAlarms; | ||
74 | QSpinBox *mSuspendSpin; | ||
75 | QString mFileName; | ||
76 | int fd_led; | ||
77 | sharp_led_status statusLED; | ||
78 | }; | ||
79 | |||
80 | #endif | ||