summaryrefslogtreecommitdiffabout
path: root/kalarmd/alarmdialog.h
authorzautrix <zautrix>2005-04-08 22:39:42 (UTC)
committer zautrix <zautrix>2005-04-08 22:39:42 (UTC)
commitc4bab697d650c249cdff45b753b9e6df2a817877 (patch) (unidiff)
tree2726d1686d42e9d3e42aae780d766df94465281a /kalarmd/alarmdialog.h
parent9667e6f2589d5b2080cca928814f382761f8dda6 (diff)
downloadkdepimpi-c4bab697d650c249cdff45b753b9e6df2a817877.zip
kdepimpi-c4bab697d650c249cdff45b753b9e6df2a817877.tar.gz
kdepimpi-c4bab697d650c249cdff45b753b9e6df2a817877.tar.bz2
alarmdialog fix
Diffstat (limited to 'kalarmd/alarmdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/alarmdialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h
index 896cf60..1e4636c 100644
--- a/kalarmd/alarmdialog.h
+++ b/kalarmd/alarmdialog.h
@@ -1,84 +1,85 @@
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> 31#include <qcombobox.h>
32#include <qpushbutton.h> 32#include <qpushbutton.h>
33 33
34#include "sharp_char.h" 34#include "sharp_char.h"
35 35
36 36
37class QSpinBox; 37class QSpinBox;
38class QLabel; 38class QLabel;
39class QString; 39class QString;
40 40
41class AlarmDialog : public QDialog { 41class AlarmDialog : public QDialog {
42 Q_OBJECT 42 Q_OBJECT
43 public: 43 public:
44 AlarmDialog( QWidget *parent = 0, const char *name = 0 ); 44 AlarmDialog( QWidget *parent = 0, const char *name = 0 );
45 virtual ~AlarmDialog(); 45 virtual ~AlarmDialog();
46 46
47 bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); 47 bool eventNotification(QString m, int replay , QString m2 , bool, int, int );
48 int getSuspendTime( ); 48 int getSuspendTime( );
49 void setSuspendTime( int ); 49 void setSuspendTime( int );
50 void setServerNotification( bool b ); 50 void setServerNotification( bool b );
51 51
52 public slots: 52 public slots:
53 void spinBoxChanged( int );
53 void slotOk(); 54 void slotOk();
54 void slotSuspend(); 55 void slotSuspend();
55 void reject () ; 56 void reject () ;
56 void silent () ; 57 void silent () ;
57 void accept(); 58 void accept();
58 void suspend(); 59 void suspend();
59 void playSound (); 60 void playSound ();
60 signals: 61 signals:
61 // void suspendSignal(int duration); 62 // void suspendSignal(int duration);
62 void addAlarm(const QDateTime &, const QString & ); 63 void addAlarm(const QDateTime &, const QString & );
63 64
64 private: 65 private:
65 int alarmCounter; 66 int alarmCounter;
66 int mPauseCount; 67 int mPauseCount;
67 int mSuspendCounter; 68 int mSuspendCounter;
68 int maxAlarmReplay; 69 int maxAlarmReplay;
69 QTimer* playSoundTimer; 70 QTimer* playSoundTimer;
70 bool mStopAlarm; 71 bool mStopAlarm;
71 bool mSilent; 72 bool mSilent;
72 bool mPlayWav; 73 bool mPlayWav;
73 bool mServerNotification; 74 bool mServerNotification;
74 QLabel* mMessage; 75 QLabel* mMessage;
75 QLabel* mMissedAlarms; 76 QLabel* mMissedAlarms;
76 QSpinBox *mSuspendSpin; 77 QSpinBox *mSuspendSpin;
77 QComboBox *mMissedAlarmsCombo; 78 QComboBox *mMissedAlarmsCombo;
78 QPushButton* mSuspendButton; 79 QPushButton* mSuspendButton;
79 QString mFileName; 80 QString mFileName;
80 int fd_led; 81 int fd_led;
81 sharp_led_status statusLED; 82 sharp_led_status statusLED;
82}; 83};
83 84
84#endif 85#endif