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

Nepomuk-Core

  • KTp
  • AccountsComboBox
Public Member Functions | List of all members
KTp::AccountsComboBox Class Reference

#include <accounts-combo-box.h>

Inheritance diagram for KTp::AccountsComboBox:
Inheritance graph
[legend]

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

KTp::AccountsComboBox::AccountsComboBox ( QWidget *  parent = 0)
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
selectedAccountIdthe 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
selectedAccountthe account to select

Definition at line 62 of file accounts-combo-box.cpp.


The documentation for this class was generated from the following files:
  • accounts-combo-box.h
  • accounts-combo-box.cpp
This file is part of the KDE documentation.
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.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
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