00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef SERVERDIALOG_H
00019 #define SERVERDIALOG_H
00020
00021
00022 #include <qlayout.h>
00023 #include <qlabel.h>
00024 #include <qtooltip.h>
00025 #include <qspinbox.h>
00026 #include <qgroupbox.h>
00027 #include <qbuttongroup.h>
00028 #include <qradiobutton.h>
00029 #include <qcheckbox.h>
00030
00031
00032 #include <kdialogbase.h>
00033 #include <klocale.h>
00034 #include <klineedit.h>
00035 #include <kcombobox.h>
00036 #include <kdebug.h>
00037 #include <kmessagebox.h>
00038 #include <kpassdlg.h>
00039
00040
00041 #include "configelem.h"
00042 #include "constants.h"
00043 #include "encryption.h"
00044 #include "kwalletaccess.h"
00045
00046
00047 #define ID_BUTTON_PASSWORD_DONT_SAVE 1
00048 #define ID_BUTTON_PASSWORD_SAVE_FILE 2
00049 #define ID_BUTTON_PASSWORD_SAVE_KWALLET 3
00050
00057 class ServerDialog : public KDialogBase
00058 {
00059 Q_OBJECT
00060 public:
00061
00062 public:
00063
00069 ServerDialog( QWidget* parent, ConfigElem* item = NULL );
00070
00074 ~ServerDialog();
00075
00076 private:
00077
00081 ConfigElem* account;
00082
00086 KLineEdit* txtAccount;
00087
00091 KLineEdit* txtServer;
00092
00096 KComboBox* cboProtocol;
00097
00101 QSpinBox* spbPort;
00102
00106 KLineEdit* txtUser;
00107
00111 KPasswordEdit* txtPassword;
00112
00116 QCheckBox* chkActive;
00117
00121 QButtonGroup* grpPasswordStorage;
00122
00123 protected slots:
00124
00130 void slotPasswordStorageChanged( int id );
00131
00139 void slotOk();
00140
00141 protected:
00142
00146 void fillDialog();
00147 };
00148
00149 #endif