kabc
#include <distributionlistdialog.h>
Inherits KDialog.
Public Member Functions | |
EmailSelector (const QStringList &emails, const QString ¤t, QWidget *parent=0) | |
~EmailSelector () | |
QString | selected () const |
Static Public Member Functions | |
static QString | getEmail (const QStringList &emails, const QString ¤t, 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 69 of file distributionlistdialog.cpp.
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:
-
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 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:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:56 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.