Dialog to setup an account from the context menu. More...
#include <accountsetupdialogcontext.h>
Public Member Functions | |
AccountSetupDialogContext (QWidget *parent, QString accountName) | |
General constructor. | |
~AccountSetupDialogContext () | |
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 | load () |
Loads the setup from the application config and fills the dialog. | |
void | save () |
Saves the setup into the application config. | |
void | enableLoginCheckbox () |
Enables or disables the unsecure login checkbox depending on the chosen security. | |
Private Attributes | |
QString | accName |
Account name. | |
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 from the context menu.
Definition at line 67 of file accountsetupdialogcontext.h.
AccountSetupDialogContext::AccountSetupDialogContext | ( | QWidget * | parent, | |
QString | accountName | |||
) |
General constructor.
parent | parent of the dialog
|
Definition at line 20 of file accountsetupdialogcontext.cpp.
AccountSetupDialogContext::~AccountSetupDialogContext | ( | ) |
Destructor.
Definition at line 179 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::enableLoginCheckbox | ( | ) | [protected] |
Enables or disables the unsecure login checkbox depending on the chosen security.
Definition at line 366 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::load | ( | ) | [protected] |
Loads the setup from the application config and fills the dialog.
Definition at line 223 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::save | ( | ) | [protected] |
Saves the setup into the application config.
Definition at line 302 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::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 194 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::slotPasswordStorageChanged | ( | int | id | ) | [protected, slot] |
Connected with the password button group.
Enabled or disabled the password edit line.
id | button identifier |
Definition at line 183 of file accountsetupdialogcontext.cpp.
void AccountSetupDialogContext::slotSecureTransferChanged | ( | int | id | ) | [protected, slot] |
Connected with the secure transfer button group.
Changes the port number.
id | button identifier |
Definition at line 288 of file accountsetupdialogcontext.cpp.
QString AccountSetupDialogContext::accName [private] |
Account name.
Definition at line 90 of file accountsetupdialogcontext.h.
KComboBox* AccountSetupDialogContext::cboProtocol [private] |
Combo box to choose the protocol.
Definition at line 105 of file accountsetupdialogcontext.h.
QCheckBox* AccountSetupDialogContext::chkActive [private] |
Check box to select whether the account is active or not.
Definition at line 125 of file accountsetupdialogcontext.h.
QCheckBox* AccountSetupDialogContext::chkAllowUnsecureLogin [private] |
Check box to select whether unsecure login is allowed.
Definition at line 140 of file accountsetupdialogcontext.h.
QButtonGroup* AccountSetupDialogContext::grpPasswordStorage [private] |
Combines the radio buttons of password storage.
Definition at line 130 of file accountsetupdialogcontext.h.
QButtonGroup* AccountSetupDialogContext::grpSecureTransfer [private] |
Combines the radio buttons of secure transfer.
Definition at line 135 of file accountsetupdialogcontext.h.
QSpinBox* AccountSetupDialogContext::spbPort [private] |
Spinbox to choose the tcp port.
Definition at line 110 of file accountsetupdialogcontext.h.
KLineEdit* AccountSetupDialogContext::txtAccount [private] |
Edit line which contains the unique account name.
Definition at line 95 of file accountsetupdialogcontext.h.
KLineEdit* AccountSetupDialogContext::txtPassword [private] |
Edit line which contains the password.
Definition at line 120 of file accountsetupdialogcontext.h.
KLineEdit* AccountSetupDialogContext::txtServer [private] |
Edit line which contains the server name.
Definition at line 100 of file accountsetupdialogcontext.h.
KLineEdit* AccountSetupDialogContext::txtUser [private] |
Edit line which contains the user name.
Definition at line 115 of file accountsetupdialogcontext.h.