• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

Public Member Functions | Protected Member Functions | List of all members
KopeteEditAccountWidget Class Referenceabstract

#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

Author
Olivier Goffart ogoff.nosp@m.art@.nosp@m.kde.o.nosp@m.rg

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

KopeteEditAccountWidget::KopeteEditAccountWidget ( Kopete::Account *  account)
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.

KopeteEditAccountWidget::~KopeteEditAccountWidget ( )
virtual

Destructor.

Definition at line 33 of file editaccountwidget.cpp.

Member Function Documentation

Kopete::Account * KopeteEditAccountWidget::account ( ) const
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.

virtual Kopete::Account* KopeteEditAccountWidget::apply ( )
pure virtual

Create a new account if we are in the 'add account wizard', otherwise update the existing account.

void KopeteEditAccountWidget::setAccount ( Kopete::Account *  account)
protected

Set the account.

Definition at line 43 of file editaccountwidget.cpp.

virtual bool KopeteEditAccountWidget::validateData ( )
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:
  • editaccountwidget.h
  • editaccountwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal