kopete/kopete
#include <accountidentitydialog.h>
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.
Definition at line 35 of file accountidentitydialog.h.
Constructor & Destructor Documentation
|
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
|
protectedvirtualslot |
Definition at line 148 of file accountidentitydialog.cpp.
|
static |
This is the easiest (and the recommended) way of changing the account identity.
Example:
- 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 198 of file accountidentitydialog.cpp.
|
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 214 of file accountidentitydialog.cpp.
|
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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.