00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KDMSESS_H__
00021 #define __KDMSESS_H__
00022
00023
00024 #include <tqstring.h>
00025
00026 class TQComboBox;
00027 class TQCheckBox;
00028 class KURLRequester;
00029 class KBackedComboBox;
00030
00031 class KDMSessionsWidget : public QWidget
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 KDMSessionsWidget(TQWidget *parent=0, const char *name=0);
00037
00038 void load();
00039 void save();
00040 void defaults();
00041 void makeReadOnly();
00042
00043 enum SdModes { SdAll, SdRoot, SdNone };
00044
00045 signals:
00046 void changed( bool state );
00047
00048 protected slots:
00049 void changed();
00050
00051 private:
00052 void readSD (TQComboBox *, TQString);
00053 void writeSD (TQComboBox *);
00054
00055 QComboBox *sdlcombo, *sdrcombo;
00056 QLabel *sdllabel, *sdrlabel;
00057 KURLRequester *restart_lined, *shutdown_lined;
00058 KBackedComboBox *bm_combo;
00059 };
00060
00061
00062 #endif
00063
00064