.TH "KABC::FormatFactory" 3 "28 Jan 2004" "kabc Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KABC::FormatFactory \- Class for loading format plugins.  

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

.in +1c
.ti -1c
.RI "\fBFormatPlugin\fP * \fBformat\fP (const  \fBQString\fP &type)"
.br
.RI "\fIReturns a pointer to a format object or a null pointer if format type doesn't exist. \fP"
.ti -1c
.RI "\fBQStringList\fP \fBformats\fP ()"
.br
.RI "\fIReturns a list of all available format types. \fP"
.ti -1c
.RI "FormatInfo * \fBinfo\fP (const  \fBQString\fP &type)"
.br
.RI "\fIReturns the info structure for a special type. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBFormatFactory\fP * \fBself\fP ()"
.br
.RI "\fIReturns the global format factory. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Class for loading format plugins. 

Example:
.PP
.PP
.nf

 KABC::FormatFactory *factory = \fBKABC::FormatFactory::self()\fP;
.PP
.PP
.PP
.nf
 \fBQStringList\fP list = factory->\fBformats()\fP;
 QStringList::Iterator it;
 for ( it = list.begin(); it != list.end(); ++it ) {
   \fBKABC::FormatPlugin\fP *format = factory->format( (*it) );
   // do something with format
 }
 
.PP
 
.PP
Definition at line 57 of file formatfactory.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBFormatFactory\fP * FormatFactory::self ()\fC [static]\fP"
.PP
Returns the global format factory. Definition at line 36 of file formatfactory.cpp.
.SS "\fBFormatPlugin\fP * FormatFactory::format (const \fBQString\fP & type)"
.PP
Returns a pointer to a format object or a null pointer if format type doesn't exist. \fBParameters:\fP
.RS 4
\fItype\fP The type of the format, returned by \fBformats\fP() 
.RE
.PP
Definition at line 108 of file formatfactory.cpp.
.PP
References format(), QString::isEmpty(), and KLibrary::symbol().
.PP
Referenced by format(), and KABC::ResourceIMAP::ResourceIMAP().
.SS "\fBQStringList\fP FormatFactory::formats ()"
.PP
Returns a list of all available format types. Definition at line 85 of file formatfactory.cpp.
.PP
References QDictIterator::current(), and QDictIterator::currentKey().
.SS "FormatInfo * FormatFactory::info (const \fBQString\fP & type)"
.PP
Returns the info structure for a special type. Definition at line 100 of file formatfactory.cpp.
.PP
References QString::isEmpty().

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