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.
EmailSelector::~EmailSelector | ( | ) |
Destroys the dialog instance.
Definition at line 102 of file distributionlistdialog.cpp.
Member Function Documentation
|
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 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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.