-rw-r--r-- | kalarmd/alarmdialog.cpp | 5 | ||||
-rw-r--r-- | kalarmd/alarmdialog.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kalarmd/alarmdialog.cpp b/kalarmd/alarmdialog.cpp index 53ff488..65073f6 100644 --- a/kalarmd/alarmdialog.cpp +++ b/kalarmd/alarmdialog.cpp | |||
@@ -134,12 +134,13 @@ AlarmDialog::AlarmDialog(QWidget *parent,const char *name) | |||
134 | silen->setFont( fo ); | 134 | silen->setFont( fo ); |
135 | okbut->setFont( fo ); | 135 | okbut->setFont( fo ); |
136 | okbut->setDefault( true ); | 136 | okbut->setDefault( true ); |
137 | connect (silen , SIGNAL( clicked() ), this, SLOT (silent() ) ); | 137 | connect (silen , SIGNAL( clicked() ), this, SLOT (silent() ) ); |
138 | connect (mSuspendButton, SIGNAL( clicked() ), this, SLOT (slotSuspend() ) ); | 138 | connect (mSuspendButton, SIGNAL( clicked() ), this, SLOT (slotSuspend() ) ); |
139 | connect (okbut , SIGNAL( clicked() ), this, SLOT (slotOk() ) ); | 139 | connect (okbut , SIGNAL( clicked() ), this, SLOT (slotOk() ) ); |
140 | connect (mSuspendSpin , SIGNAL( valueChanged ( int ) ), this, SLOT ( spinBoxChanged( int ) ) ); | ||
140 | #ifndef _WIN32_ | 141 | #ifndef _WIN32_ |
141 | if ( QFile::exists ( "/dev/sharp_led" ) ) | 142 | if ( QFile::exists ( "/dev/sharp_led" ) ) |
142 | fd_led = open ( "/dev/sharp_led", O_RDWR|O_NONBLOCK ); | 143 | fd_led = open ( "/dev/sharp_led", O_RDWR|O_NONBLOCK ); |
143 | else | 144 | else |
144 | #endif | 145 | #endif |
145 | fd_led = 0; | 146 | fd_led = 0; |
@@ -259,12 +260,16 @@ bool AlarmDialog::eventNotification( QString mess, int replay , QString fn, boo | |||
259 | #endif | 260 | #endif |
260 | playSoundTimer->start( 1000, true ); | 261 | playSoundTimer->start( 1000, true ); |
261 | return true; | 262 | return true; |
262 | 263 | ||
263 | } | 264 | } |
264 | 265 | ||
266 | void AlarmDialog::spinBoxChanged( int ) | ||
267 | { | ||
268 | mSilent = true; | ||
269 | } | ||
265 | 270 | ||
266 | void AlarmDialog::playSound () | 271 | void AlarmDialog::playSound () |
267 | { | 272 | { |
268 | 273 | ||
269 | if (mStopAlarm ) | 274 | if (mStopAlarm ) |
270 | return; | 275 | return; |
diff --git a/kalarmd/alarmdialog.h b/kalarmd/alarmdialog.h index 896cf60..1e4636c 100644 --- a/kalarmd/alarmdialog.h +++ b/kalarmd/alarmdialog.h | |||
@@ -47,12 +47,13 @@ class AlarmDialog : public QDialog { | |||
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(); |