summaryrefslogtreecommitdiffabout
path: root/kalarmd/alarmdialog.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kalarmd/alarmdialog.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kalarmd/alarmdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/alarmdialog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h
index 52e681a..c3e0966 100644
--- a/kalarmd/alarmdialog.h
+++ b/kalarmd/alarmdialog.h
@@ -1,87 +1,89 @@
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//Added by qt3to4:
34#include <QLabel>
33 35
34#include "sharp_char.h" 36#include "sharp_char.h"
35 37
36 38
37class QSpinBox; 39class QSpinBox;
38class QLabel; 40class QLabel;
39class QString; 41class QString;
40 42
41class AlarmDialog : public QDialog { 43class AlarmDialog : public QDialog {
42 Q_OBJECT 44 Q_OBJECT
43 public: 45 public:
44 AlarmDialog( QWidget *parent = 0, const char *name = 0 ); 46 AlarmDialog( QWidget *parent = 0, const char *name = 0 );
45 virtual ~AlarmDialog(); 47 virtual ~AlarmDialog();
46 48
47 bool eventNotification(QString m, int replay , QString m2 , bool, int, int ); 49 bool eventNotification(QString m, int replay , QString m2 , bool, int, int );
48 int getSuspendTime( ); 50 int getSuspendTime( );
49 void setSuspendTime( int ); 51 void setSuspendTime( int );
50 void setServerNotification( bool b ); 52 void setServerNotification( bool b );
51 53
52 public slots: 54 public slots:
53 void forceRepaint(); 55 void forceRepaint();
54 void spinBoxChanged( int ); 56 void spinBoxChanged( int );
55 void slotOk(); 57 void slotOk();
56 void slotSuspend(); 58 void slotSuspend();
57 void reject () ; 59 void reject () ;
58 void silent () ; 60 void silent () ;
59 void accept(); 61 void accept();
60 void suspend(); 62 void suspend();
61 void playSound (); 63 void playSound ();
62 signals: 64 signals:
63 // void suspendSignal(int duration); 65 // void suspendSignal(int duration);
64 void addAlarm(const QDateTime &, const QString & ); 66 void addAlarm(const QDateTime &, const QString & );
65 67
66 private: 68 private:
67 QPushButton* okbut; 69 QPushButton* okbut;
68 int alarmCounter; 70 int alarmCounter;
69 int mPauseCount; 71 int mPauseCount;
70 int mSuspendCounter; 72 int mSuspendCounter;
71 int maxAlarmReplay; 73 int maxAlarmReplay;
72 QTimer* playSoundTimer; 74 QTimer* playSoundTimer;
73 bool mStopAlarm; 75 bool mStopAlarm;
74 bool mSilent; 76 bool mSilent;
75 bool mPlayWav; 77 bool mPlayWav;
76 bool mServerNotification; 78 bool mServerNotification;
77 QLabel* mMessage; 79 QLabel* mMessage;
78 QLabel* mMissedAlarms; 80 QLabel* mMissedAlarms;
79 QSpinBox *mSuspendSpin; 81 QSpinBox *mSuspendSpin;
80 QComboBox *mMissedAlarmsCombo; 82 QComboBox *mMissedAlarmsCombo;
81 QPushButton* mSuspendButton; 83 QPushButton* mSuspendButton;
82 QString mFileName; 84 QString mFileName;
83 int fd_led; 85 int fd_led;
84 sharp_led_status statusLED; 86 sharp_led_status statusLED;
85}; 87};
86 88
87#endif 89#endif