AccountSetupDialogContext Class Reference

Dialog to setup an account from the context menu. More...

#include <accountsetupdialogcontext.h>

List of all members.

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.

Detailed Description

Dialog to setup an account from the context menu.

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

Definition at line 67 of file accountsetupdialogcontext.h.


Constructor & Destructor Documentation

AccountSetupDialogContext::AccountSetupDialogContext ( QWidget *  parent,
QString  accountName 
)

General constructor.

Parameters:
parent parent of the dialog
Parameters:
accountName name of the account to config

Definition at line 20 of file accountsetupdialogcontext.cpp.

AccountSetupDialogContext::~AccountSetupDialogContext (  ) 

Destructor.

Definition at line 179 of file accountsetupdialogcontext.cpp.


Member Function Documentation

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.

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

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

Parameters:
id button identifier

Definition at line 288 of file accountsetupdialogcontext.cpp.


Member Data Documentation

Account name.

Definition at line 90 of file accountsetupdialogcontext.h.

Combo box to choose the protocol.

Definition at line 105 of file accountsetupdialogcontext.h.

Check box to select whether the account is active or not.

Definition at line 125 of file accountsetupdialogcontext.h.

Check box to select whether unsecure login is allowed.

Definition at line 140 of file accountsetupdialogcontext.h.

Combines the radio buttons of password storage.

Definition at line 130 of file accountsetupdialogcontext.h.

Combines the radio buttons of secure transfer.

Definition at line 135 of file accountsetupdialogcontext.h.

Spinbox to choose the tcp port.

Definition at line 110 of file accountsetupdialogcontext.h.

Edit line which contains the unique account name.

Definition at line 95 of file accountsetupdialogcontext.h.

Edit line which contains the password.

Definition at line 120 of file accountsetupdialogcontext.h.

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.


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