00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KCMKDED_H
00020 #define KCMKDED_H
00021
00022 #include <tqlistview.h>
00023
00024 #include <kcmodule.h>
00025
00026 class KListView;
00027
00028 class TQStringList;
00029 class TQPushButton;
00030
00031 class KDEDConfig : public KCModule
00032 {
00033 Q_OBJECT
00034 public:
00035 KDEDConfig(TQWidget* parent, const char* name= 0L, const TQStringList& foo = TQStringList());
00036 ~KDEDConfig() {};
00037
00038 void load();
00039 void load( bool useDefaults );
00040 void save();
00041 void defaults();
00042
00043 protected slots:
00044 void slotReload();
00045 void slotStartService();
00046 void slotStopService();
00047 void slotServiceRunningToggled();
00048 void slotEvalItem(TQListViewItem *item);
00049 void slotItemChecked(TQCheckListItem *item);
00050 void getServiceStatus();
00051
00052 bool autoloadEnabled(KConfig *config, const TQString &filename);
00053 void setAutoloadEnabled(KConfig *config, const TQString &filename, bool b);
00054
00055 private:
00056 KListView *_lvLoD;
00057 KListView *_lvStartup;
00058 TQPushButton *_pbStart;
00059 TQPushButton *_pbStop;
00060
00061 TQString RUNNING;
00062 TQString NOT_RUNNING;
00063 };
00064
00065 class CheckListItem : public TQObject, public QCheckListItem
00066 {
00067 Q_OBJECT
00068 public:
00069 CheckListItem(TQListView* parent, const TQString &text);
00070 ~CheckListItem() { }
00071 signals:
00072 void changed(TQCheckListItem*);
00073 protected:
00074 virtual void stateChange(bool);
00075 };
00076
00077 #endif // KCMKDED_H
00078