Nepomuk-Core
#include <accounts-combo-box.h>

Public Member Functions | |
AccountsComboBox (QWidget *parent=0) | |
Tp::AccountPtr | currentAccount () |
void | setAccountSet (const Tp::AccountSetPtr &accountSet) |
void | setCurrentAccount (const QString &selectedAccountId) |
void | setCurrentAccount (const Tp::AccountPtr &selectedAccount) |
Detailed Description
Definition at line 30 of file accounts-combo-box.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 34 of file accounts-combo-box.cpp.
Member Function Documentation
Tp::AccountPtr KTp::AccountsComboBox::currentAccount | ( | ) |
The currently selected account.
- Returns
- the select account this pointer will be null if no account is selected
Definition at line 47 of file accounts-combo-box.cpp.
void KTp::AccountsComboBox::setAccountSet | ( | const Tp::AccountSetPtr & | accountSet | ) |
A set of accounts to show.
See AccountsListModel::setAccountSet for details
Definition at line 42 of file accounts-combo-box.cpp.
void KTp::AccountsComboBox::setCurrentAccount | ( | const QString & | selectedAccountId | ) |
Sets the index to the account with the specified ID, provided it exists in the account set This may be used to save/restore the last used account when showing the combo box.
- Parameters
-
selectedAccountId the account id as found from Tp::Account::uniqueIdentifier
Definition at line 52 of file accounts-combo-box.cpp.
void KTp::AccountsComboBox::setCurrentAccount | ( | const Tp::AccountPtr & | selectedAccount | ) |
Sets the index to the specified account, provided it exists in the account set.
- Parameters
-
selectedAccount the account to select
Definition at line 62 of file accounts-combo-box.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.