locationdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef LOCATIONDIALOG_H
00021 #define LOCATIONDIALOG_H
00022
00023 #include <kdialogbase.h>
00024
00025 class QComboBox;
00026 class QLineEdit;
00027 class EditList;
00028 struct CupsdConf;
00029 struct CupsLocation;
00030
00031 class LocationDialog : public KDialogBase
00032 {
00033 Q_OBJECT
00034 public:
00035 LocationDialog(QWidget *parent = 0, const char *name = 0);
00036
00037 void setInfos(CupsdConf*);
00038 void fillLocation(CupsLocation*);
00039 void setLocation(CupsLocation*);
00040
00041 static bool newLocation(CupsLocation*, QWidget *parent = 0, CupsdConf *conf = 0);
00042 static bool editLocation(CupsLocation*, QWidget *parent = 0, CupsdConf *conf = 0);
00043
00044 protected slots:
00045 void slotTypeChanged(int);
00046 void slotClassChanged(int);
00047 void slotAdd();
00048 void slotEdit(int);
00049 void slotDefaultList();
00050
00051 private:
00052 QComboBox *resource_, *authtype_, *authclass_, *encryption_, *satisfy_, *order_;
00053 QLineEdit *authname_;
00054 EditList *addresses_;
00055 CupsdConf *conf_;
00056 };
00057
00058 #endif
|