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

akonadi/contact

  • Akonadi
  • EmailAddressSelectionWidget
Signals | Public Member Functions | List of all members
Akonadi::EmailAddressSelectionWidget Class Reference

#include <emailaddressselectionwidget.h>

Inherits QWidget.

Signals

void doubleClicked ()
 

Public Member Functions

 EmailAddressSelectionWidget (bool showOnlyContactWithEmail, QAbstractItemModel *model=0, QWidget *parent=0)
 
 EmailAddressSelectionWidget (QAbstractItemModel *model, QWidget *parent=0)
 
 EmailAddressSelectionWidget (QWidget *parent=0)
 
 ~EmailAddressSelectionWidget ()
 
KLineEdit * searchLineEdit () const
 
EmailAddressSelection::List selectedAddresses () const
 
QTreeView * view () const
 

Detailed Description

A widget to select email addresses from Akonadi.

This widget allows the user to select an name and email address from the Akonadi storage. The selected addresses are returned as EmailAddressSelectionWidget::Selection objects which encapsulate the name, email address and the Akonadi item that has been selected.

Example:

Akonadi::EmailAddressSelectionWidget *widget = new Akonadi::EmailAddressSelectionWidget( this );
widget->view()->setSelectionMode( QAbstractItemView::MultiSelection );
...
foreach ( const Akonadi::EmailAddressSelection &selection, widget->selectedAddresses() ) {
qDebug() << "Name:" << selection.name() << "Email:" << selection.email();
}
Akonadi::EmailAddressSelectionWidget
A widget to select email addresses from Akonadi.
Definition emailaddressselectionwidget.h:67
Akonadi::EmailAddressSelection
An selection of an email address and corresponding name.
Definition emailaddressselection.h:50
Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since
4.5

Definition at line 66 of file emailaddressselectionwidget.h.

Constructor & Destructor Documentation

◆ EmailAddressSelectionWidget() [1/3]

EmailAddressSelectionWidget::EmailAddressSelectionWidget ( QWidget * parent = 0)
explicit

Creates a new email address selection widget.

Parameters
parentThe parent widget.

Definition at line 173 of file emailaddressselectionwidget.cpp.

◆ EmailAddressSelectionWidget() [2/3]

EmailAddressSelectionWidget::EmailAddressSelectionWidget ( QAbstractItemModel * model,
QWidget * parent = 0 )
explicit

Creates a new email address selection widget.

Parameters
modelA custom, ContactsTreeModel based model to use.
parentThe parent widget.

Definition at line 179 of file emailaddressselectionwidget.cpp.

◆ EmailAddressSelectionWidget() [3/3]

EmailAddressSelectionWidget::EmailAddressSelectionWidget ( bool showOnlyContactWithEmail,
QAbstractItemModel * model = 0,
QWidget * parent = 0 )
explicit

Creates a new email address selection widget.

Parameters
showOnlyContactWithEmailAllow to specify if you want to see only contact with email (by default yes in other constructor)
modelA custom ContactsTreeModel based model to use.
parentThe parent widget.

Definition at line 185 of file emailaddressselectionwidget.cpp.

◆ ~EmailAddressSelectionWidget()

EmailAddressSelectionWidget::~EmailAddressSelectionWidget ( )

Destroys the email address selection widget.

Definition at line 191 of file emailaddressselectionwidget.cpp.

Member Function Documentation

◆ doubleClicked

void Akonadi::EmailAddressSelectionWidget::doubleClicked ( )
signal
Since
4.10.1

◆ searchLineEdit()

KLineEdit * EmailAddressSelectionWidget::searchLineEdit ( ) const

Returns the line edit that is used for the search line.

Definition at line 223 of file emailaddressselectionwidget.cpp.

◆ selectedAddresses()

EmailAddressSelection::List EmailAddressSelectionWidget::selectedAddresses ( ) const

Returns the list of selected email addresses.

Definition at line 196 of file emailaddressselectionwidget.cpp.

◆ view()

QTreeView * EmailAddressSelectionWidget::view ( ) const

Returns the tree view that is used to list the items.

Definition at line 228 of file emailaddressselectionwidget.cpp.


The documentation for this class was generated from the following files:
  • emailaddressselectionwidget.h
  • emailaddressselectionwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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