Dialog to setup an account. More...
#include <accountsetupdialog.h>
Public Member Functions | |
AccountSetupDialog (QWidget *parent, QTreeWidget *view, AccountSetupItem *item=NULL) | |
General constructor. | |
~AccountSetupDialog () | |
Destructor. | |
Protected Slots | |
void | slotPasswordStorageChanged (int id) |
Connected with the password button group. | |
void | slotSecureTransferChanged (int id) |
Connected with the secure transfer button group. | |
virtual void | slotButtonClicked (int button) |
Overwritten method of KDialog. Called if a button was clicked. | |
Protected Member Functions | |
void | fillDialog () |
Writes the values of the account into the dialog items. | |
void | enableLoginCheckbox () |
Enables or disables the unsecure login checkbox depending on the chosen security. | |
Private Attributes | |
AccountSetupItem * | account |
account to setup | |
QTreeWidget * | listView |
View which shows the account items. | |
KLineEdit * | txtAccount |
Edit line which contains the unique account name. | |
KLineEdit * | txtServer |
Edit line which contains the server name. | |
KComboBox * | cboProtocol |
Combo box to choose the protocol. | |
QSpinBox * | spbPort |
Spinbox to choose the tcp port. | |
KLineEdit * | txtUser |
Edit line which contains the user name. | |
KLineEdit * | txtPassword |
Edit line which contains the password. | |
QCheckBox * | chkActive |
Check box to select whether the account is active or not. | |
QButtonGroup * | grpPasswordStorage |
Combines the radio buttons of password storage. | |
QButtonGroup * | grpSecureTransfer |
Combines the radio buttons of secure transfer. | |
QCheckBox * | chkAllowUnsecureLogin |
Check box to select whether unsecure login is allowed. |
Dialog to setup an account.
Definition at line 62 of file accountsetupdialog.h.
AccountSetupDialog::AccountSetupDialog | ( | QWidget * | parent, | |
QTreeWidget * | view, | |||
AccountSetupItem * | item = NULL | |||
) |
General constructor.
parent | parent of the dialog
|
Definition at line 20 of file accountsetupdialog.cpp.
AccountSetupDialog::~AccountSetupDialog | ( | ) |
Destructor.
Definition at line 182 of file accountsetupdialog.cpp.
void AccountSetupDialog::enableLoginCheckbox | ( | ) | [protected] |
Enables or disables the unsecure login checkbox depending on the chosen security.
Definition at line 384 of file accountsetupdialog.cpp.
void AccountSetupDialog::fillDialog | ( | ) | [protected] |
Writes the values of the account into the dialog items.
Definition at line 304 of file accountsetupdialog.cpp.
void AccountSetupDialog::slotButtonClicked | ( | int | button | ) | [protected, virtual, slot] |
Overwritten method of KDialog. Called if a button was clicked.
If OK was clicked it stores the entered values into the given account item. If no item was given it creates a new one.
button | is the type KDialog::ButtonCode |
Definition at line 197 of file accountsetupdialog.cpp.
void AccountSetupDialog::slotPasswordStorageChanged | ( | int | id | ) | [protected, slot] |
Connected with the password button group.
Enabled or disabled the password edit line.
id | button identifier |
Definition at line 186 of file accountsetupdialog.cpp.
void AccountSetupDialog::slotSecureTransferChanged | ( | int | id | ) | [protected, slot] |
Connected with the secure transfer button group.
Changes the port number.
id | button identifier |
Definition at line 371 of file accountsetupdialog.cpp.
AccountSetupItem* AccountSetupDialog::account [private] |
account to setup
Definition at line 86 of file accountsetupdialog.h.
KComboBox* AccountSetupDialog::cboProtocol [private] |
Combo box to choose the protocol.
Definition at line 106 of file accountsetupdialog.h.
QCheckBox* AccountSetupDialog::chkActive [private] |
Check box to select whether the account is active or not.
Definition at line 126 of file accountsetupdialog.h.
QCheckBox* AccountSetupDialog::chkAllowUnsecureLogin [private] |
Check box to select whether unsecure login is allowed.
Definition at line 141 of file accountsetupdialog.h.
QButtonGroup* AccountSetupDialog::grpPasswordStorage [private] |
Combines the radio buttons of password storage.
Definition at line 131 of file accountsetupdialog.h.
QButtonGroup* AccountSetupDialog::grpSecureTransfer [private] |
Combines the radio buttons of secure transfer.
Definition at line 136 of file accountsetupdialog.h.
QTreeWidget* AccountSetupDialog::listView [private] |
View which shows the account items.
Definition at line 91 of file accountsetupdialog.h.
QSpinBox* AccountSetupDialog::spbPort [private] |
Spinbox to choose the tcp port.
Definition at line 111 of file accountsetupdialog.h.
KLineEdit* AccountSetupDialog::txtAccount [private] |
Edit line which contains the unique account name.
Definition at line 96 of file accountsetupdialog.h.
KLineEdit* AccountSetupDialog::txtPassword [private] |
Edit line which contains the password.
Definition at line 121 of file accountsetupdialog.h.
KLineEdit* AccountSetupDialog::txtServer [private] |
Edit line which contains the server name.
Definition at line 101 of file accountsetupdialog.h.
KLineEdit* AccountSetupDialog::txtUser [private] |
Edit line which contains the user name.
Definition at line 116 of file accountsetupdialog.h.