ServerDialog Class Reference

Dialog to edit account options. You can not create a new account or edit the account name. More...

#include <serverdialog.h>

List of all members.

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

ConfigElemaccount
KLineEdit * txtAccount
KLineEdit * txtServer
KComboBox * cboProtocol
QSpinBox * spbPort
KLineEdit * txtUser
KPasswordEdit * txtPassword
QCheckBox * chkActive
QButtonGroup * grpPasswordStorage


Detailed Description

Dialog to edit account options. You can not create a new account or edit the account name.

Author:
Eggert Ehmke

Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 57 of file serverdialog.h.


Constructor & Destructor Documentation

ServerDialog::ServerDialog ( QWidget *  parent,
ConfigElem item = NULL 
)

General constructor

Parameters:
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.


Member Function Documentation

void ServerDialog::slotPasswordStorageChanged ( int  id  )  [protected, slot]

Connected with the password button group. Enabled or disabled the password edit line.

Parameters:
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().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  doxygen 1.5.0