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

kopete/kopete

Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
AccountIdentityDialog Class Reference

#include <accountidentitydialog.h>

Inheritance diagram for AccountIdentityDialog:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

Protected Slots

virtual void accept ()
 
virtual void reject ()
 

Detailed Description

This dialog is used to set the identity of an account.

Author
Gustavo Pichorim Boiko gusta.nosp@m.vo.b.nosp@m.oiko@.nosp@m.kema.nosp@m.il.ne.nosp@m.t

Definition at line 35 of file accountidentitydialog.h.

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 51 of file accountidentitydialog.cpp.

AccountIdentityDialog::~AccountIdentityDialog ( )

Definition at line 167 of file accountidentitydialog.cpp.

Member Function Documentation

void AccountIdentityDialog::accept ( )
protectedvirtualslot

Definition at line 148 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
parentthe parent widget to be used by the dialog
accountthe Kopete::Account that needs to change the identity
hidden_identthe 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
messagethe text message to be displayed in the dialog

Definition at line 198 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
parentthe parent widget to be used by the dialog
accountLista list of accounts to change the identity of
hidden_identthe 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
messagethe text message to be displayed in the dialog

Definition at line 214 of file accountidentitydialog.cpp.

void AccountIdentityDialog::reject ( )
protectedvirtualslot

Definition at line 162 of file accountidentitydialog.cpp.

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

Sets the account this dialog will change the identity of.

Definition at line 172 of file accountidentitydialog.cpp.

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

Sets the accounts this dialog will change the identity of.

Definition at line 179 of file accountidentitydialog.cpp.

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

Sets the identity to be hidden.

Definition at line 190 of file accountidentitydialog.cpp.

void AccountIdentityDialog::setMessage ( const QString &  text)

Sets the text message to be displayed in the dialog.

Definition at line 185 of file accountidentitydialog.cpp.


The documentation for this class was generated from the following files:
  • accountidentitydialog.h
  • accountidentitydialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • 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