summaryrefslogtreecommitdiffabout
path: root/kalarmd/alarmdialog.h
Unidiff
Diffstat (limited to 'kalarmd/alarmdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/alarmdialog.h80
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
35class QSpinBox;
36class QLabel;
37class QString;
38
39class 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