00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NAUGHTY_H
00022 #define NAUGHTY_H
00023
00024 #include <kpanelapplet.h>
00025 #include <tqstringlist.h>
00026
00027 #include "simplebutton.h"
00028
00029 class NaughtyProcessMonitor;
00030 class TQPushButton;
00031
00032 class NaughtyApplet : public KPanelApplet
00033 {
00034 Q_OBJECT
00035
00036 public:
00037
00038 NaughtyApplet
00039 (
00040 const TQString & configFile,
00041 Type t = Normal,
00042 int actions = 0,
00043 TQWidget * parent = 0,
00044 const char * name = 0
00045 );
00046
00047 ~NaughtyApplet();
00048
00049 virtual int widthForHeight(int h) const;
00050 virtual int heightForWidth(int w) const;
00051
00052 signals:
00053
00054 void layoutChanged();
00055
00056 protected slots:
00057
00058 void slotWarn(ulong pid, const TQString & name);
00059 void slotLoad(uint);
00060 void slotPreferences();
00061
00062 protected:
00063
00064 virtual void about();
00065 virtual void preferences();
00066 virtual void loadSettings();
00067 virtual void saveSettings();
00068
00069 private:
00070
00071 NaughtyProcessMonitor * monitor_;
00072 SimpleButton * button_;
00073 TQStringList ignoreList_;
00074 };
00075
00076 #endif