\section{KABC::Distribution\-List\-Manager Class Reference}
\label{classKABC_1_1DistributionListManager}\index{KABC::DistributionListManager@{KABC::DistributionListManager}}
Manager of distribution lists.  


{\tt \#include $<$distributionlist.h$>$}

Collaboration diagram for KABC::Distribution\-List\-Manager:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=191pt]{classKABC_1_1DistributionListManager__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Distribution\-List\-Manager} ({\bf Address\-Book} $\ast$)
\begin{CompactList}\small\item\em Create manager for given address book. \item\end{CompactList}\item 
{\bf $\sim$Distribution\-List\-Manager} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
{\bf Distribution\-List} $\ast$ {\bf list} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Return distribution list with given name. \item\end{CompactList}\item 
void {\bf insert} ({\bf Distribution\-List} $\ast$)
\begin{CompactList}\small\item\em Insert distribution list. \item\end{CompactList}\item 
void {\bf remove} ({\bf Distribution\-List} $\ast$)
\begin{CompactList}\small\item\em Remove distribution list. \item\end{CompactList}\item 
{\bf QString\-List} {\bf list\-Names} ()
\begin{CompactList}\small\item\em Return names of all distribution lists managed by this manager. \item\end{CompactList}\item 
bool {\bf load} ()
\begin{CompactList}\small\item\em Load distribution lists form disk. \item\end{CompactList}\item 
bool {\bf save} ()
\begin{CompactList}\small\item\em Save distribution lists to disk. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Manager of distribution lists. 

This class represents a collection of distribution lists, which are associated with a given address book. 



Definition at line 122 of file distributionlist.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!DistributionListManager@{DistributionListManager}}
\index{DistributionListManager@{DistributionListManager}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Distribution\-List\-Manager::Distribution\-List\-Manager ({\bf Address\-Book} $\ast$)}\label{classKABC_1_1DistributionListManager_a0}


Create manager for given address book. 



Definition at line 108 of file distributionlist.cpp.\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!~DistributionListManager@{$\sim$DistributionListManager}}
\index{~DistributionListManager@{$\sim$DistributionListManager}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Distribution\-List\-Manager::$\sim${\bf Distribution\-List\-Manager} ()}\label{classKABC_1_1DistributionListManager_a1}


Destructor. 



Definition at line 113 of file distributionlist.cpp.

\subsection{Member Function Documentation}
\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!list@{list}}
\index{list@{list}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Distribution\-List} $\ast$ Distribution\-List\-Manager::list (const {\bf QString} \& {\em name})}\label{classKABC_1_1DistributionListManager_a2}


Return distribution list with given name. 



Definition at line 117 of file distributionlist.cpp.

References QPtr\-List$<$ Distribution\-List $>$::first(), list(), KStd\-Accel::name(), KABC::Distribution\-List::name(), and QPtr\-List$<$ Distribution\-List $>$::next().

Referenced by insert(), list(), list\-Names(), load(), remove(), and save().\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!insert@{insert}}
\index{insert@{insert}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Distribution\-List\-Manager::insert ({\bf Distribution\-List} $\ast$)}\label{classKABC_1_1DistributionListManager_a3}


Insert distribution list. 

If a list with this name already exists, nothing happens. 

Definition at line 127 of file distributionlist.cpp.

References QPtr\-List$<$ Distribution\-List $>$::append(), QPtr\-List$<$ Distribution\-List $>$::first(), list(), KABC::Distribution\-List::name(), QPtr\-List$<$ Distribution\-List $>$::next(), and QPtr\-List$<$ Distribution\-List $>$::remove().

Referenced by KABC::Distribution\-List::Distribution\-List().\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!remove@{remove}}
\index{remove@{remove}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Distribution\-List\-Manager::remove ({\bf Distribution\-List} $\ast$)}\label{classKABC_1_1DistributionListManager_a4}


Remove distribution list. 

If a list with this name doesn't exist, nothing happens. 

Definition at line 139 of file distributionlist.cpp.

References QPtr\-List$<$ Distribution\-List $>$::first(), list(), KABC::Distribution\-List::name(), QPtr\-List$<$ Distribution\-List $>$::next(), and QPtr\-List$<$ Distribution\-List $>$::remove().

Referenced by KABC::Distribution\-List::$\sim$Distribution\-List().\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!listNames@{listNames}}
\index{listNames@{listNames}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} Distribution\-List\-Manager::list\-Names ()}\label{classKABC_1_1DistributionListManager_a5}


Return names of all distribution lists managed by this manager. 



Definition at line 150 of file distributionlist.cpp.

References QPtr\-List$<$ Distribution\-List $>$::first(), list(), KABC::Distribution\-List::name(), and QPtr\-List$<$ Distribution\-List $>$::next().\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!load@{load}}
\index{load@{load}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Distribution\-List\-Manager::load ()}\label{classKABC_1_1DistributionListManager_a6}


Load distribution lists form disk. 



Definition at line 162 of file distributionlist.cpp.

References QMap::begin(), QMap::end(), KConfig::entry\-Map(), KABC::Address\-Book::find\-By\-Uid(), KABC::Address\-Book::identifier(), KABC::Distribution\-List::insert\-Entry(), KABC::Addressee::is\-Empty(), QMap::is\-Empty(), QString\-List::join(), list(), locate\-Local(), KStd\-Accel::name(), KConfig\-Base::read\-List\-Entry(), and KConfig\-Base::set\-Group().\index{KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}!save@{save}}
\index{save@{save}!KABC::DistributionListManager@{KABC::Distribution\-List\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Distribution\-List\-Manager::save ()}\label{classKABC_1_1DistributionListManager_a7}


Save distribution lists to disk. 



Definition at line 203 of file distributionlist.cpp.

References QValue\-List::begin(), KConfig\-Base::delete\-Group(), QValue\-List::end(), KABC::Distribution\-List::entries(), QPtr\-List$<$ Distribution\-List $>$::first(), KABC::Address\-Book::identifier(), list(), locate\-Local(), KABC::Distribution\-List::name(), QPtr\-List$<$ Distribution\-List $>$::next(), KConfig\-Base::set\-Group(), KSimple\-Config::sync(), and KConfig\-Base::write\-Entry().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
distributionlist.h\item 
distributionlist.cpp\end{CompactItemize}
