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