KABC::FormatFactory Class Reference
Class for loading format plugins. More...
#include <formatfactory.h>
Collaboration diagram for KABC::FormatFactory:

| Public Member Functions | |
| ~FormatFactory () | |
| FormatPlugin * | format (const QString &type) | 
| QStringList | formats () | 
| FormatInfo * | info (const QString &type) | 
| Static Public Member Functions | |
| FormatFactory * | self () | 
Detailed Description
Class for loading format plugins.Example:
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 }
Definition at line 57 of file formatfactory.h.
Constructor & Destructor Documentation
| 
 | 
| Destructor. 
 Definition at line 81 of file formatfactory.cpp. References QDict< FormatInfo >::clear(). | 
Member Function Documentation
| 
 | 
| Returns the global format factory. 
 Definition at line 38 of file formatfactory.cpp. | 
| 
 | 
| Returns a pointer to a format object or a null pointer if format type doesn't exist. 
 
 Definition at line 109 of file formatfactory.cpp. References endl(), format(), QString::isEmpty(), kdDebug(), and KLibrary::symbol(). Referenced by format(), and KABC::ResourceFile::setFormat(). | 
| 
 | 
| Returns a list of all available format types. 
 Definition at line 86 of file formatfactory.cpp. References QDictIterator::current(), and QDictIterator::currentKey(). | 
| 
 | 
| Returns the info structure for a special type. 
 Definition at line 101 of file formatfactory.cpp. References QString::isEmpty(). | 
The documentation for this class was generated from the following files:

