Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::Ui::EditAccountWidget Class Reference

Base Class for widgets to edit account properties. More...

#include <editaccountwidget.h>

Inheritance diagram for Blokkal::Ui::EditAccountWidget:

Blokkal::Ui::GenericEditAccountWidget

List of all members.


Signals

void valuesChanged (void)

Public Member Functions

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

Protected Member Functions

Blokkal::Accountaccount (void) const

Detailed Description

Base Class for widgets to edit account properties.

Base Class for widgets to edit account properties.

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

Definition at line 38 of file editaccountwidget.h.


Constructor & Destructor Documentation

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

Constructs a new EditAccountWidget.

Parameters:
protocol the protocol object
account the account object for this widget, may be null
parent the parent widget

Definition at line 47 of file editaccountwidget.cpp.

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

Destructor

Definition at line 55 of file editaccountwidget.cpp.


Member Function Documentation

Blokkal::Account * Blokkal::Ui::EditAccountWidget::account ( void   )  const [protected]

This method returns a pointer to the account object.

Note:
this method may return 0, if this widget is used to create a new account and apply() has not been called yet!
Returns:
the account object

Definition at line 60 of file editaccountwidget.cpp.

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

This method returns a pointer to the updated account object.

Returns:
the account object

Implemented in Blokkal::Ui::GenericEditAccountWidget.

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

This method is called to determine if the entered information is valid.

Returns:
TRUE if the entered information is valid

Implemented in Blokkal::Ui::GenericEditAccountWidget.

Blokkal::Protocol * Blokkal::Ui::EditAccountWidget::protocol ( void   )  const

This method returns a pointer to the protocol.

Returns:
the protocol object

Definition at line 65 of file editaccountwidget.cpp.

void Blokkal::Ui::EditAccountWidget::valuesChanged ( void   )  [signal]

This signal is emitted whenever the values in this widget change.


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