.TH "KABC::DistributionListManager" 3 "28 Jan 2004" "kabc Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KABC::DistributionListManager \- Manager of distribution lists.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <distributionlist.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBDistributionListManager\fP (\fBAddressBook\fP *)"
.br
.RI "\fICreate manager for given address book. \fP"
.ti -1c
.RI "\fB~DistributionListManager\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "\fBDistributionList\fP * \fBlist\fP (const  \fBQString\fP &name)"
.br
.RI "\fIReturn distribution list with given name. \fP"
.ti -1c
.RI "void \fBinsert\fP (\fBDistributionList\fP *)"
.br
.RI "\fIInsert distribution list. \fP"
.ti -1c
.RI "void \fBremove\fP (\fBDistributionList\fP *)"
.br
.RI "\fIRemove distribution list. \fP"
.ti -1c
.RI "\fBQStringList\fP \fBlistNames\fP ()"
.br
.RI "\fIReturn names of all distribution lists managed by this manager. \fP"
.ti -1c
.RI "bool \fBload\fP ()"
.br
.RI "\fILoad distribution lists form disk. \fP"
.ti -1c
.RI "bool \fBsave\fP ()"
.br
.RI "\fISave distribution lists to disk. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Manager of distribution lists. 

This class represents a collection of distribution lists, which are associated with a given address book. 
.PP
Definition at line 122 of file distributionlist.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DistributionListManager::DistributionListManager (\fBAddressBook\fP *)"
.PP
Create manager for given address book. Definition at line 108 of file distributionlist.cpp.
.SS "DistributionListManager::~\fBDistributionListManager\fP ()"
.PP
Destructor. Definition at line 113 of file distributionlist.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBDistributionList\fP * DistributionListManager::list (const \fBQString\fP & name)"
.PP
Return distribution list with given name. Definition at line 117 of file distributionlist.cpp.
.PP
References QPtrList< DistributionList >::first(), list(), KStdAccel::name(), KABC::DistributionList::name(), and QPtrList< DistributionList >::next().
.PP
Referenced by insert(), list(), listNames(), load(), remove(), and save().
.SS "void DistributionListManager::insert (\fBDistributionList\fP *)"
.PP
Insert distribution list. If a list with this name already exists, nothing happens. Definition at line 127 of file distributionlist.cpp.
.PP
References QPtrList< DistributionList >::append(), QPtrList< DistributionList >::first(), list(), KABC::DistributionList::name(), QPtrList< DistributionList >::next(), and QPtrList< DistributionList >::remove().
.PP
Referenced by KABC::DistributionList::DistributionList().
.SS "void DistributionListManager::remove (\fBDistributionList\fP *)"
.PP
Remove distribution list. If a list with this name doesn't exist, nothing happens. Definition at line 139 of file distributionlist.cpp.
.PP
References QPtrList< DistributionList >::first(), list(), KABC::DistributionList::name(), QPtrList< DistributionList >::next(), and QPtrList< DistributionList >::remove().
.PP
Referenced by KABC::DistributionList::~DistributionList().
.SS "\fBQStringList\fP DistributionListManager::listNames ()"
.PP
Return names of all distribution lists managed by this manager. Definition at line 150 of file distributionlist.cpp.
.PP
References QPtrList< DistributionList >::first(), list(), KABC::DistributionList::name(), and QPtrList< DistributionList >::next().
.SS "bool DistributionListManager::load ()"
.PP
Load distribution lists form disk. Definition at line 162 of file distributionlist.cpp.
.PP
References QMap::begin(), QMap::end(), KConfig::entryMap(), KABC::AddressBook::findByUid(), KABC::AddressBook::identifier(), KABC::DistributionList::insertEntry(), KABC::Addressee::isEmpty(), QMap::isEmpty(), QStringList::join(), list(), locateLocal(), KStdAccel::name(), KConfigBase::readListEntry(), and KConfigBase::setGroup().
.SS "bool DistributionListManager::save ()"
.PP
Save distribution lists to disk. Definition at line 203 of file distributionlist.cpp.
.PP
References QValueList::begin(), KConfigBase::deleteGroup(), QValueList::end(), KABC::DistributionList::entries(), QPtrList< DistributionList >::first(), KABC::AddressBook::identifier(), list(), locateLocal(), KABC::DistributionList::name(), QPtrList< DistributionList >::next(), KConfigBase::setGroup(), KSimpleConfig::sync(), and KConfigBase::writeEntry().

.SH "Author"
.PP 
Generated automatically by Doxygen for kabc Library from the source code.
