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

kabc

  • KABC
  • EmailSelector
Public Member Functions | Static Public Member Functions | List of all members
KABC::EmailSelector Class Reference

#include <distributionlistdialog.h>

Inherits KDialog.

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.

Definition at line 77 of file distributionlistdialog.h.

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 102 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 117 of file distributionlistdialog.cpp.

QString EmailSelector::selected ( ) const

Returns the selected email address.

Definition at line 107 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 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 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