• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::EmailSelector

KABC::EmailSelector Class Reference

Helper class. More...

#include <distributionlistdialog.h>

Inherits KDialog.

List of all members.


Public Member Functions

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

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:
emails The list of email addresses to choose from
current The email address to pre-select. Can be QString()
parent The QWidget parent for the dialog

Definition at line 68 of file distributionlistdialog.cpp.

EmailSelector::~EmailSelector (  ) 

Destroys the dialog instance.

Definition at line 100 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:
emails The list of email addresses to choose from
current The email address to pre-select. Can be QString()
parent The QWidget parent for the dialog
Returns:
the selected email address or QString() if non was selected

Definition at line 115 of file distributionlistdialog.cpp.

QString EmailSelector::selected (  )  const

Returns the selected email address.

Definition at line 105 of file distributionlistdialog.cpp.


The documentation for this class was generated from the following files:
  • distributionlistdialog.h
  • distributionlistdialog.cpp

kabc

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal