Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::Ui::GenericEditAccountWidget Class Reference

A widget to edit generic account properties. More...

#include <genericeditaccountwidget.h>

Inheritance diagram for Blokkal::Ui::GenericEditAccountWidget:

Blokkal::Ui::EditAccountWidget

List of all members.


Public Member Functions

virtual Blokkal::Accountapply (void)
 GenericEditAccountWidget (Blokkal::Protocol *protocol, Blokkal::Account *account, QWidget *parent=0)
virtual bool isValid (void) const
virtual ~GenericEditAccountWidget (void)

Protected Slots

virtual void emitValuesChanged (void)
virtual void setServerAddress (const QString &serverName)=0
virtual void useStandardAddressToggled (void)

Protected Member Functions

QGroupBox * accountGroupBox (void) const
KLineEdit * connectAddressLineEdit (void) const
QGroupBox * networkGroupBox (void) const
KLineEdit * serverNameLineEdit (void) const
QGroupBox * userGroupBox (void) const
KLineEdit * userNameLineEdit (void) const
QCheckBox * useStandardAddressCheckBox (void) const

Detailed Description

A widget to edit generic account properties.

A widget to edit generic account properties. The account name is composed from user name and server name, as long as it has not been edited manually.

Author:
Martin Müller <orvio@orvio.de>

Definition at line 43 of file genericeditaccountwidget.h.


Constructor & Destructor Documentation

Blokkal::Ui::GenericEditAccountWidget::GenericEditAccountWidget ( Blokkal::Protocol protocol,
Blokkal::Account account,
QWidget *  parent = 0 
)

Constructs a new GenericEditAccountWidget

Parameters:
protocol the protocol object
account the account object
parent the parent widget

Definition at line 68 of file genericeditaccountwidget.cpp.

Blokkal::Ui::GenericEditAccountWidget::~GenericEditAccountWidget ( void   )  [virtual]

Destroys the widget

Definition at line 168 of file genericeditaccountwidget.cpp.


Member Function Documentation

QGroupBox * Blokkal::Ui::GenericEditAccountWidget::accountGroupBox ( void   )  const [protected]

Returns the account group box.

Returns:
the account group box

Definition at line 247 of file genericeditaccountwidget.cpp.

Blokkal::Account * Blokkal::Ui::GenericEditAccountWidget::apply ( void   )  [virtual]

This method returns a pointer to the updated account object.

Returns:
the account object

Implements Blokkal::Ui::EditAccountWidget.

Definition at line 173 of file genericeditaccountwidget.cpp.

KLineEdit * Blokkal::Ui::GenericEditAccountWidget::connectAddressLineEdit ( void   )  const [protected]

Returns the server address line edit

Returns:
the server address line edit

Definition at line 219 of file genericeditaccountwidget.cpp.

void Blokkal::Ui::GenericEditAccountWidget::emitValuesChanged ( void   )  [protected, virtual, slot]

This slot is called whenever the contents of the widgets change.

Definition at line 224 of file genericeditaccountwidget.cpp.

bool Blokkal::Ui::GenericEditAccountWidget::isValid ( void   )  const [virtual]

This method checks that server name, user name and account name are set. If the default address is not set, it must be set as well. Also checks, whether the account manager has an account with the entered account name.

Returns:
TRUE if the entered information is valid

Implements Blokkal::Ui::EditAccountWidget.

Definition at line 190 of file genericeditaccountwidget.cpp.

QGroupBox * Blokkal::Ui::GenericEditAccountWidget::networkGroupBox ( void   )  const [protected]

Returns the network group box.

Returns:
the network group box

Definition at line 257 of file genericeditaccountwidget.cpp.

KLineEdit * Blokkal::Ui::GenericEditAccountWidget::serverNameLineEdit ( void   )  const [protected]

Returns the server name line edit.

Returns:
the server name line edit

Definition at line 237 of file genericeditaccountwidget.cpp.

virtual void Blokkal::Ui::GenericEditAccountWidget::setServerAddress ( const QString &  serverName  )  [protected, pure virtual, slot]

This slot is called whenever the content of the server name widget changes.

Parameters:
serverName the new server name

QGroupBox * Blokkal::Ui::GenericEditAccountWidget::userGroupBox ( void   )  const [protected]

Returns the user group box.

Returns:
the user group box

Definition at line 252 of file genericeditaccountwidget.cpp.

KLineEdit * Blokkal::Ui::GenericEditAccountWidget::userNameLineEdit ( void   )  const [protected]

Returns the user name line edit.

Returns:
the user name line edit

Definition at line 262 of file genericeditaccountwidget.cpp.

QCheckBox * Blokkal::Ui::GenericEditAccountWidget::useStandardAddressCheckBox ( void   )  const [protected]

Returns the "Use stanard address" checkbox

Returns:
the "Use stanard address" checkbox

Definition at line 214 of file genericeditaccountwidget.cpp.

void Blokkal::Ui::GenericEditAccountWidget::useStandardAddressToggled ( void   )  [protected, virtual, slot]

This slot is called when the "Use stanard address" checkbox is toggled. The default implementation calls setServerAddress().

Definition at line 242 of file genericeditaccountwidget.cpp.


The documentation for this class was generated from the following files: