kopete/libkopete
#include <editaccountwidget.h>
Public Member Functions | |
KopeteEditAccountWidget (Kopete::Account *account) | |
virtual | ~KopeteEditAccountWidget () |
virtual Kopete::Account * | apply ()=0 |
virtual bool | validateData ()=0 |
Protected Member Functions | |
Kopete::Account * | account () const |
void | setAccount (Kopete::Account *account) |
Detailed Description
This class is used by the protocol plugins to add specific protocol fields in the add account wizard, or in the account preferences. If the given account is 0L, then you will have to create a new account in apply().
Each protocol has to subclass this class, and the protocol's edit account page MUST inherits from QWidget too.
We suggest to put at least these fields in the page:
- The User login, or the accountId. you can retrieve it from Kopete::Account::accountId(). This field has to be marked as ReadOnly or shown as a label if the account already exists. Remember that accountId should be constant after account creation!
- The password, and the remember password checkboxes.
- The auto connect checkbox: use Kopete::Account::excludeConnect() and Kopete::Account::setExcludeConnect() to get/set this flag.
You may add other custom fields, e.g. the nickname. To save or retrieve these settings use Kopete::ContactListElement::pluginData() with your protocol as plugin.
Definition at line 55 of file editaccountwidget.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
If 'account' is 0L we are in the 'add account wizard', otherwise we are editing an existing account.
Definition at line 27 of file editaccountwidget.cpp.
|
virtual |
Destructor.
Definition at line 33 of file editaccountwidget.cpp.
Member Function Documentation
|
protected |
Get a pointer to the Kopete::Account passed to the constructor.
You can modify it any way you like, just don't delete the object.
Definition at line 38 of file editaccountwidget.cpp.
|
pure virtual |
Create a new account if we are in the 'add account wizard', otherwise update the existing account.
|
protected |
Set the account.
Definition at line 43 of file editaccountwidget.cpp.
|
pure virtual |
This method must be reimplemented.
It does the same as AddContactPage::validateData()
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.