kopete/kopete
AccountIdentityDialog Class Reference
#include <accountidentitydialog.h>

Detailed Description
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) | |
| ~AccountIdentityDialog () | |
| void | setAccount (Kopete::Account *account) |
| void | setAccounts (QList< Kopete::Account * > accountList) |
| void | setMessage (const QString &text) |
| void | setHiddenIdentity (Kopete::Identity *ident) |
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 () |
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::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::setMessage | ( | const QString & | text | ) |
Sets the text message to be displayed in the dialog.
Definition at line 184 of file accountidentitydialog.cpp.
| void AccountIdentityDialog::setHiddenIdentity | ( | Kopete::Identity * | ident | ) |
| 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.
| 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.
| void AccountIdentityDialog::accept | ( | ) | [protected, virtual, slot] |
Definition at line 147 of file accountidentitydialog.cpp.
| void AccountIdentityDialog::reject | ( | ) | [protected, virtual, slot] |
Definition at line 161 of file accountidentitydialog.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference