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

kopete/kopete

AccountIdentityDialog Class Reference

#include <accountidentitydialog.h>

Inheritance diagram for AccountIdentityDialog:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Gustavo Pichorim Boiko <gustavo.boiko@kemail.net>

This dialog is used to set the identity of an account

Definition at line 35 of file accountidentitydialog.h.


Public Member Functions

 AccountIdentityDialog (QWidget *parent=0)
void setAccount (Kopete::Account *account)
void setAccounts (QList< Kopete::Account * > accountList)
void setHiddenIdentity (Kopete::Identity *ident)
void setMessage (const QString &text)
 ~AccountIdentityDialog ()

Static Public Member Functions

static bool changeAccountIdentity (QWidget *parent, QList< Kopete::Account * > accountList, Kopete::Identity *hidden_ident=0, const QString &message=QString())
static bool changeAccountIdentity (QWidget *parent, Kopete::Account *account, Kopete::Identity *hidden_ident=0, const QString &message=QString())

Protected Slots

virtual void accept ()
virtual void reject ()

Constructor & Destructor Documentation

AccountIdentityDialog::AccountIdentityDialog ( QWidget *  parent = 0  )  [explicit]

Default constructor for the account identity dialog.

You can create a dialog for setting the identity of an account using this constructor, but the easiest (and the recommended) way of calling it is by using the static methods changeAccountIdentity()

Definition at line 50 of file accountidentitydialog.cpp.

AccountIdentityDialog::~AccountIdentityDialog (  ) 

Definition at line 166 of file accountidentitydialog.cpp.


Member Function Documentation

void AccountIdentityDialog::accept (  )  [protected, virtual, slot]

Definition at line 147 of file accountidentitydialog.cpp.

bool AccountIdentityDialog::changeAccountIdentity ( QWidget *  parent,
QList< Kopete::Account * >  accountList,
Kopete::Identity *  hidden_ident = 0,
const QString &  message = QString() 
) [static]

This behaves essentially like the above function, but can be used to change the identity of more than one Kopete::Account at a time.

Parameters:
parent the parent widget to be used by the dialog
accountList a list of accounts to change the identity of
hidden_ident the Kopete::Identity that should be hidden in the dialog (in case it is being removed we don't want any account to be assigned to it). The default behavior is to show all identities
message the text message to be displayed in the dialog

Definition at line 211 of file accountidentitydialog.cpp.

bool AccountIdentityDialog::changeAccountIdentity ( QWidget *  parent,
Kopete::Account *  account,
Kopete::Identity *  hidden_ident = 0,
const QString &  message = QString() 
) [static]

This is the easiest (and the recommended) way of changing the account identity.

Example:

       if (AccountIdentityDialog::changeAccountIdentity(parent_widget, account))
         // it succeeded on changing the account identity

Parameters:
parent the parent widget to be used by the dialog
account the Kopete::Account that needs to change the identity
hidden_ident the Kopete::Identity that should be hidden in the dialog (in case it is being removed we don't want any account to be assigned to it). The default behavior is to show all identities
message the text message to be displayed in the dialog

Definition at line 197 of file accountidentitydialog.cpp.

void AccountIdentityDialog::reject (  )  [protected, virtual, slot]

Definition at line 161 of file accountidentitydialog.cpp.

void AccountIdentityDialog::setAccount ( Kopete::Account *  account  ) 

Sets the account this dialog will change the identity of.

Definition at line 171 of file accountidentitydialog.cpp.

void AccountIdentityDialog::setAccounts ( QList< Kopete::Account * >  accountList  ) 

Sets the accounts this dialog will change the identity of.

Definition at line 178 of file accountidentitydialog.cpp.

void AccountIdentityDialog::setHiddenIdentity ( Kopete::Identity *  ident  ) 

Sets the identity to be hidden.

Definition at line 189 of file accountidentitydialog.cpp.

void AccountIdentityDialog::setMessage ( const QString &  text  ) 

Sets the text message to be displayed in the dialog.

Definition at line 184 of file accountidentitydialog.cpp.


The documentation for this class was generated from the following files:
  • accountidentitydialog.h
  • accountidentitydialog.cpp

kopete/kopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal