KNotify
notifybysound.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef NOTIFYBYSOUND_H
00024 #define NOTIFYBYSOUND_H
00025
00026 #include "knotifyplugin.h"
00027
00028
00029 class NotifyBySound : public KNotifyPlugin
00030 { Q_OBJECT
00031 public:
00032 NotifyBySound(QObject *parent=0l);
00033 virtual ~NotifyBySound();
00034
00035 virtual QString optionName() { return "Sound"; }
00036 virtual void notify(int id , KNotifyConfig *config);
00037 virtual void close(int id);
00038
00039 private:
00040 class Private;
00041 Private* const d;
00042 void loadConfig();
00043
00044 public:
00045 void setVolume( int v );
00046
00047 protected:
00048 void timerEvent(QTimerEvent *);
00049
00050 private Q_SLOTS:
00051 void slotSoundFinished(int id);
00052 void closeNow();
00053 };
00054
00055 #endif