.TH "KABC::FormatFactory" kde3 "11 Jun 2005" "Version Version 3.4.1" "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 "\fB~FormatFactory\fP ()"
.br
.ti -1c
.RI "\fBFormatPlugin\fP * \fBformat\fP (const \fBQString\fP &type)"
.br
.ti -1c
.RI "\fBQStringList\fP \fBformats\fP ()"
.br
.ti -1c
.RI "FormatInfo * \fBinfo\fP (const \fBQString\fP &type)"
.br
.in -1c
.SS "Static Public Member Functions"

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

Example:
.PP
.PP
.nf
 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
 }
.fi
.PP
 
.PP
Definition at line 57 of file formatfactory.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "FormatFactory::~\fBFormatFactory\fP ()"
.PP
Destructor. 
.PP
Definition at line 81 of file formatfactory.cpp.
.PP
References QDict::clear().
.SH "Member Function Documentation"
.PP 
.SS "\fBFormatFactory\fP * FormatFactory::self ()\fC [static]\fP"
.PP
Returns the global format factory. 
.PP
Definition at line 38 of file formatfactory.cpp.
.PP
References endl(), kdDebug(), and KStaticDeleter< type >::setObject().
.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. 
.PP
\fBParameters:\fP
.RS 4
\fItype\fP The type of the format, returned by \fBformats()\fP 
.RE
.PP

.PP
Definition at line 109 of file formatfactory.cpp.
.PP
References endl(), format(), kdDebug(), and KLibrary::symbol().
.PP
Referenced by format().
.SS "\fBQStringList\fP FormatFactory::formats ()"
.PP
Returns a list of all available format types. 
.PP
Definition at line 86 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. 
.PP
Definition at line 101 of file formatfactory.cpp.

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