Part of the setup dialog (KShowMailApp::SetupDialog) to configure the accounts. More...
#include <configaccounts.h>
Public Member Functions | |
ConfigAccounts (QWidget *parent=0, const QVariantList &args=QVariantList()) | |
~ConfigAccounts () | |
virtual void | load () |
virtual void | defaults () |
virtual void | save () |
Private Slots | |
void | slotChanged () |
void | slotAdd () |
void | slotEdit () |
void | slotRemove () |
Private Attributes | |
KSharedConfigPtr | config |
QTreeWidget * | accountListView |
KPushButton * | btnAdd |
KPushButton * | btnEdit |
KPushButton * | btnRemove |
Part of the setup dialog (KShowMailApp::SetupDialog) to configure the accounts.
Definition at line 44 of file configaccounts.h.
ConfigAccounts::ConfigAccounts | ( | QWidget * | parent = 0 , |
|
const QVariantList & | args = QVariantList() | |||
) | [explicit] |
Generic Constructor
parent | parent widget
|
Definition at line 23 of file configaccounts.cpp.
ConfigAccounts::~ConfigAccounts | ( | ) |
Destructor
Definition at line 70 of file configaccounts.cpp.
void ConfigAccounts::defaults | ( | ) | [virtual] |
Overloaded method of KCModule. Sets the user interface elements to default values. This method is called when the user clicks the "Default" button.
Definition at line 140 of file configaccounts.cpp.
void ConfigAccounts::load | ( | ) | [virtual] |
Overloaded method of KCModule. Sets the user interface elements to reflect the current settings stored in the config file.
Definition at line 74 of file configaccounts.cpp.
void ConfigAccounts::save | ( | ) | [virtual] |
Overloaded method of KCModule. Stores the config information as shown in the user interface in the config file. Is called when the user clicks "Apply" or "Ok".
Definition at line 92 of file configaccounts.cpp.
void ConfigAccounts::slotAdd | ( | ) | [private, slot] |
Connected with button btnAdd. Opens the account setup dialog with an account item pointer of NULL. If the user has clicked OK, the dialog will create a new account item with the entered values and adds it to the list view.
Definition at line 149 of file configaccounts.cpp.
void ConfigAccounts::slotChanged | ( | ) | [private, slot] |
Connected with the configuration items. Calls the slot changed() of KCModule to notify the dialog about the change.
Definition at line 144 of file configaccounts.cpp.
void ConfigAccounts::slotEdit | ( | ) | [private, slot] |
Connected with button btnEdit. Opens the account setup with the selected account item.
Definition at line 163 of file configaccounts.cpp.
void ConfigAccounts::slotRemove | ( | ) | [private, slot] |
Connected with button btnRemove. Removes the selected item.
Definition at line 184 of file configaccounts.cpp.
QTreeWidget* ConfigAccounts::accountListView [private] |
Account List View
Definition at line 94 of file configaccounts.h.
KPushButton* ConfigAccounts::btnAdd [private] |
Button to add a new account
Definition at line 99 of file configaccounts.h.
KPushButton* ConfigAccounts::btnEdit [private] |
Button to edit an account
Definition at line 104 of file configaccounts.h.
KPushButton* ConfigAccounts::btnRemove [private] |
Button to remove an account
Definition at line 109 of file configaccounts.h.
KSharedConfigPtr ConfigAccounts::config [private] |
Connector to the configuration file
Definition at line 89 of file configaccounts.h.