kabc
KABC::EmailSelector Class Reference
Helper class. More...
#include <distributionlistdialog.h>
Inherits KDialog.
Public Member Functions | |
| EmailSelector (const QStringList &emails, const QString ¤t, QWidget *parent=0) | |
| QString | selected () const |
| ~EmailSelector () | |
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 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:
KDE 4.3 API Reference