#include <serverdialog.h>
Public Member Functions | |
ServerDialog (QWidget *parent, ConfigElem *item=NULL) | |
~ServerDialog () | |
Protected Slots | |
void | slotPasswordStorageChanged (int id) |
void | slotOk () |
Protected Member Functions | |
void | fillDialog () |
Private Attributes | |
ConfigElem * | account |
KLineEdit * | txtAccount |
KLineEdit * | txtServer |
KComboBox * | cboProtocol |
QSpinBox * | spbPort |
KLineEdit * | txtUser |
KPasswordEdit * | txtPassword |
QCheckBox * | chkActive |
QButtonGroup * | grpPasswordStorage |
Definition at line 57 of file serverdialog.h.
ServerDialog::ServerDialog | ( | QWidget * | parent, | |
ConfigElem * | item = NULL | |||
) |
General constructor
parent | parent of the dialog | |
item | account to setup |
Definition at line 20 of file serverdialog.cpp.
References account, cboProtocol, chkActive, fillDialog(), grpPasswordStorage, slotPasswordStorageChanged(), spbPort, txtAccount, txtPassword, txtServer, and txtUser.
ServerDialog::~ServerDialog | ( | ) |
Destructor
Definition at line 129 of file serverdialog.cpp.
void ServerDialog::slotPasswordStorageChanged | ( | int | id | ) | [protected, slot] |
Connected with the password button group. Enabled or disabled the password edit line.
id | button identifier |
Definition at line 133 of file serverdialog.cpp.
References txtPassword.
Referenced by ServerDialog().
void ServerDialog::slotOk | ( | ) | [protected, slot] |
Overwritten methode of KDialogBase. Called if OK was clicked. Stores the entered values into the given account item. If no item was given, it creates a new one. After then it invokes slotOk() of KDialogBase.
Definition at line 144 of file serverdialog.cpp.
References account, cboProtocol, chkActive, Encryption::crypt(), grpPasswordStorage, KWalletAccess::savePassword(), spbPort, txtAccount, txtPassword, txtServer, and txtUser.
void ServerDialog::fillDialog | ( | ) | [protected] |
Writes the values of the account into the dialog items.
Definition at line 217 of file serverdialog.cpp.
References account, cboProtocol, chkActive, ConfigElem::getAccountName(), ConfigElem::getHost(), ConfigElem::getPassword(), ConfigElem::getPasswordStorage(), ConfigElem::getPort(), ConfigElem::getProtocol(), ConfigElem::getUser(), grpPasswordStorage, ConfigElem::isActive(), spbPort, txtAccount, txtPassword, txtServer, and txtUser.
Referenced by ServerDialog().
ConfigElem* ServerDialog::account [private] |
account to setup
Definition at line 81 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
KLineEdit* ServerDialog::txtAccount [private] |
Edit line which contains the unique account name.
Definition at line 86 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
KLineEdit* ServerDialog::txtServer [private] |
Edit line which contains the server name.
Definition at line 91 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
KComboBox* ServerDialog::cboProtocol [private] |
Combo box to choose the protocol.
Definition at line 96 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
QSpinBox* ServerDialog::spbPort [private] |
Spinbox to choose the tcp port.
Definition at line 101 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
KLineEdit* ServerDialog::txtUser [private] |
Edit line which contains the user name.
Definition at line 106 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
KPasswordEdit* ServerDialog::txtPassword [private] |
Edit line which contains the password.
Definition at line 111 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), slotOk(), and slotPasswordStorageChanged().
QCheckBox* ServerDialog::chkActive [private] |
Check box to select whether the account is active or not.
Definition at line 116 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().
QButtonGroup* ServerDialog::grpPasswordStorage [private] |
Combines the radio buttons of password storage.
Definition at line 121 of file serverdialog.h.
Referenced by fillDialog(), ServerDialog(), and slotOk().