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

akonadi

  • Akonadi
  • EmailAddressSelection
Public Types | Public Member Functions | List of all members
Akonadi::EmailAddressSelection Class Reference

#include <emailaddressselection.h>

Public Types

typedef QList
< EmailAddressSelection > 
List
 

Public Member Functions

 EmailAddressSelection ()
 
 EmailAddressSelection (const EmailAddressSelection &other)
 
 ~EmailAddressSelection ()
 
QString email () const
 
bool isValid () const
 
Akonadi::Item item () const
 
QString name () const
 
EmailAddressSelection & operator= (const EmailAddressSelection &other)
 
QString quotedEmail () const
 

Detailed Description

An selection of an email address and corresponding name.

This class encapsulates the selection of an email address and name as it is returned by EmailAddressSelectionWidget or EmailAddressSelectionDialog.

It offers convenience methods to retrieve the quoted version of the email address and access to the Akonadi item that is associated with this address.

Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since
4.5

Definition at line 49 of file emailaddressselection.h.

Member Typedef Documentation

typedef QList<EmailAddressSelection> Akonadi::EmailAddressSelection::List

A list of email address selection objects.

Definition at line 55 of file emailaddressselection.h.

Constructor & Destructor Documentation

EmailAddressSelection::EmailAddressSelection ( )

Creates a new email address selection.

Definition at line 44 of file emailaddressselection.cpp.

EmailAddressSelection::EmailAddressSelection ( const EmailAddressSelection &  other)

Creates a new email address selection from an other selection.

Definition at line 49 of file emailaddressselection.cpp.

EmailAddressSelection::~EmailAddressSelection ( )

Destroys the email address selection.

Definition at line 63 of file emailaddressselection.cpp.

Member Function Documentation

QString EmailAddressSelection::email ( ) const

Returns the address part of the selected email address.

Note
If a contact group has been selected, the name of the contact group is returned here and must be expanded by the caller.

Definition at line 77 of file emailaddressselection.cpp.

bool EmailAddressSelection::isValid ( ) const

Returns whether the selection is valid.

Definition at line 67 of file emailaddressselection.cpp.

Akonadi::Item EmailAddressSelection::item ( ) const

Returns the Akonadi item that is associated with the selected email address.

Definition at line 97 of file emailaddressselection.cpp.

QString EmailAddressSelection::name ( ) const

Returns the name that is associated with the selected email address.

Definition at line 72 of file emailaddressselection.cpp.

EmailAddressSelection & EmailAddressSelection::operator= ( const EmailAddressSelection &  other)

Replaces this email address selection with the other selection.

Definition at line 54 of file emailaddressselection.cpp.

QString EmailAddressSelection::quotedEmail ( ) const

Returns the name and email address together, properly quoted if needed.

Note
If a contact group has been selected, the name of the contact group is returned here and must be expanded by the caller.

Definition at line 82 of file emailaddressselection.cpp.


The documentation for this class was generated from the following files:
  • emailaddressselection.h
  • emailaddressselection.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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