AccountSetupDialog Class Reference

Dialog to setup an account. More...

#include <accountsetupdialog.h>

List of all members.

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

AccountSetupItemaccount
 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.

Detailed Description

Dialog to setup an account.

Author:
Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 62 of file accountsetupdialog.h.


Constructor & Destructor Documentation

AccountSetupDialog::AccountSetupDialog ( QWidget *  parent,
QTreeWidget *  view,
AccountSetupItem item = NULL 
)

General constructor.

Parameters:
parent parent of the dialog
Parameters:
view view which shows the items
Parameters:
item account to setup; if NULL, a new item will be created

Definition at line 20 of file accountsetupdialog.cpp.

AccountSetupDialog::~AccountSetupDialog (  ) 

Destructor.

Definition at line 182 of file accountsetupdialog.cpp.


Member Function Documentation

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.

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

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

Parameters:
id button identifier

Definition at line 371 of file accountsetupdialog.cpp.


Member Data Documentation

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.

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.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3