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

kabc

  • KABC
  • EmailSelector
Public Member Functions | Static Public Member Functions
KABC::EmailSelector Class Reference

#include <distributionlistdialog.h>

Inherits KDialog.

List of all members.

Public Member Functions

 EmailSelector (const QStringList &emails, const QString &current, QWidget *parent=0)
 ~EmailSelector ()
QString selected () const

Static Public Member Functions

static QString getEmail (const QStringList &emails, const QString &current, QWidget *parent=0)

Detailed Description

Helper class.


Constructor & Destructor Documentation

EmailSelector::EmailSelector ( const QStringList &  emails,
const QString &  current,
QWidget *  parent = 0 
)

Creates a dialog for selecting an email address from a list.

It will usually be more convenient to use getEmail() instead.

Parameters:
emailsThe list of email addresses to choose from
currentThe email address to pre-select. Can be QString()
parentThe QWidget parent for the dialog

Definition at line 69 of file distributionlistdialog.cpp.

EmailSelector::~EmailSelector ( )

Destroys the dialog instance.

Definition at line 101 of file distributionlistdialog.cpp.


Member Function Documentation

QString EmailSelector::getEmail ( const QStringList &  emails,
const QString &  current,
QWidget *  parent = 0 
) [static]

Returns the user's choice from a list of possible email addresses.

Convenience method that creates and executes the selection dialog and returns the selected email address.

Parameters:
emailsThe list of email addresses to choose from
currentThe email address to pre-select. Can be QString()
parentThe QWidget parent for the dialog
Returns:
the selected email address or QString() if non was selected

Definition at line 116 of file distributionlistdialog.cpp.

QString EmailSelector::selected ( ) const

Returns the selected email address.

Definition at line 106 of file distributionlistdialog.cpp.


The documentation for this class was generated from the following files:
  • distributionlistdialog.h
  • distributionlistdialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:26:08 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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