Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KABC::FormatFactory Class Reference

#include <formatfactory.h>

List of all members.

Public Methods

FormatPluginformat (const QString &type)
QStringList formats ()
FormatInfo * info (const QString &type)

Static Public Methods

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.


Member Function Documentation

FormatPlugin* KABC::FormatFactory::format const QString &    type
 

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

Parameters:
type  The type of the format, returned by formats()

QStringList KABC::FormatFactory::formats  
 

Returns a list of all available format types.

FormatInfo* KABC::FormatFactory::info const QString &    type
 

Returns the info structure for a special type.

FormatFactory* KABC::FormatFactory::self   [static]
 

Returns the global format factory.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:31 2003 for kdelibs by doxygen1.2.18