\section{KABC::Format\-Factory Class Reference}
\label{classKABC_1_1FormatFactory}\index{KABC::FormatFactory@{KABC::FormatFactory}}
Class for loading format plugins.  


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

Collaboration diagram for KABC::Format\-Factory:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=97pt]{classKABC_1_1FormatFactory__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf $\sim$Format\-Factory} ()
\item 
{\bf Format\-Plugin} $\ast$ {\bf format} (const {\bf QString} \&type)
\item 
{\bf QString\-List} {\bf formats} ()
\item 
Format\-Info $\ast$ {\bf info} (const {\bf QString} \&type)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf Format\-Factory} $\ast$ {\bf self} ()
\end{CompactItemize}


\subsection{Detailed Description}
Class for loading format plugins. 

Example:



\footnotesize\begin{verbatim} KABC::FormatFactory *factory = KABC::FormatFactory::self();

 QStringList list = factory->formats();
 QStringList::Iterator it;
 for ( it = list.begin(); it != list.end(); ++it ) {
   KABC::FormatPlugin *format = factory->format( (*it) );
   // do something with format
 }
\end{verbatim}
\normalsize
 



Definition at line 57 of file formatfactory.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::FormatFactory@{KABC::Format\-Factory}!~FormatFactory@{$\sim$FormatFactory}}
\index{~FormatFactory@{$\sim$FormatFactory}!KABC::FormatFactory@{KABC::Format\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Format\-Factory::$\sim${\bf Format\-Factory} ()}\label{classKABC_1_1FormatFactory_a0}


Destructor. 



Definition at line 81 of file formatfactory.cpp.

References QDict::clear().

\subsection{Member Function Documentation}
\index{KABC::FormatFactory@{KABC::Format\-Factory}!self@{self}}
\index{self@{self}!KABC::FormatFactory@{KABC::Format\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Format\-Factory} $\ast$ Format\-Factory::self ()\hspace{0.3cm}{\tt  [static]}}\label{classKABC_1_1FormatFactory_e0}


Returns the global format factory. 



Definition at line 38 of file formatfactory.cpp.

References endl(), kd\-Debug(), and KStatic\-Deleter$<$ type $>$::set\-Object().\index{KABC::FormatFactory@{KABC::Format\-Factory}!format@{format}}
\index{format@{format}!KABC::FormatFactory@{KABC::Format\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Format\-Plugin} $\ast$ Format\-Factory::format (const {\bf QString} \& {\em type})}\label{classKABC_1_1FormatFactory_a1}


Returns a pointer to a format object or a null pointer if format type doesn't exist. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]The type of the format, returned by {\bf formats()}{\rm (p.\,\pageref{classKABC_1_1FormatFactory_a2})} \end{description}
\end{Desc}


Definition at line 109 of file formatfactory.cpp.

References endl(), format(), kd\-Debug(), and KLibrary::symbol().

Referenced by format().\index{KABC::FormatFactory@{KABC::Format\-Factory}!formats@{formats}}
\index{formats@{formats}!KABC::FormatFactory@{KABC::Format\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} Format\-Factory::formats ()}\label{classKABC_1_1FormatFactory_a2}


Returns a list of all available format types. 



Definition at line 86 of file formatfactory.cpp.

References QDict\-Iterator::current(), and QDict\-Iterator::current\-Key().\index{KABC::FormatFactory@{KABC::Format\-Factory}!info@{info}}
\index{info@{info}!KABC::FormatFactory@{KABC::Format\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Format\-Info $\ast$ Format\-Factory::info (const {\bf QString} \& {\em type})}\label{classKABC_1_1FormatFactory_a3}


Returns the info structure for a special type. 



Definition at line 101 of file formatfactory.cpp.

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