libkdepim
KPIM::DistributionList Class Reference
#include <distributionlist.h>
Detailed Description
Distribution list of email addresses.This class represents a list of email addresses. Each email address is associated with an address book entry. If the address book entry changes, the entry in the distribution list is automatically updated.
This should go into kdelibs in KDE4.
- Author:
- David Faure <faure@kde.org>
Definition at line 43 of file distributionlist.h.
Public Types | |
typedef QValueList< DistributionList > | List |
Public Member Functions | |
DistributionList () | |
DistributionList (const KABC::Addressee &addr) | |
~DistributionList () | |
void | setName (const QString &name) |
QString | name () const |
void | insertEntry (const Addressee &, const QString &email=QString::null) |
void | removeEntry (const Addressee &, const QString &email=QString::null) |
void | insertEntry (const QString &uid, const QString &email=QString::null) |
void | removeEntry (const QString &uid, const QString &email=QString::null) |
QStringList | emails (KABC::AddressBook *book) const |
Entry::List | entries (KABC::AddressBook *book) const |
Static Public Member Functions | |
static bool | isDistributionList (const KABC::Addressee &addr) |
static DistributionList | findByName (KABC::AddressBook *book, const QString &name, bool caseSensitive=true) |
static QValueList< DistributionList > | allDistributionLists (KABC::AddressBook *book) |
Classes | |
struct | Entry |
Distribution List Entry. More... |
Constructor & Destructor Documentation
|
Create a distribution list.
|
|
Create a distribution list from an addressee object (this is a kind of down-cast).
|
|
Destructor.
Definition at line 80 of file distributionlist.h. |
Member Function Documentation
|
Return list of email addresses, which belong to this distributon list. These addresses can be directly used by e.g. a mail client.
|
|
Return list of entries belonging to this distribution list. This function is mainly useful for a distribution list editor.
|
|
Overload, used by resources to avoid looking up the addressee.
|
|
Insert an entry into this distribution list. If the entry already exists nothing happens. |
|
HACK: reimplemented from Addressee, but it's NOT virtual there.
Definition at line 86 of file distributionlist.h. |
|
Overload, used by resources to avoid looking up the addressee.
|
|
Remove an entry from this distribution list. If the entry doesn't exist nothing happens. |
|
HACK: reimplemented from Addressee, but it's NOT virtual there.
|
The documentation for this class was generated from the following file: