KABC::FormatFactory Class Reference
#include <formatfactory.h>
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.
Public Member Functions | |
~FormatFactory () | |
FormatPlugin * | format (const QString &type) |
QStringList | formats () |
FormatInfo * | info (const QString &type) |
Static Public Member Functions | |
static FormatFactory * | self () |
Protected Member Functions | |
FormatFactory () |
Constructor & Destructor Documentation
FormatFactory::~FormatFactory | ( | ) |
Member Function Documentation
FormatFactory * FormatFactory::self | ( | ) | [static] |
FormatPlugin * 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()
Definition at line 109 of file formatfactory.cpp.
QStringList FormatFactory::formats | ( | ) |
FormatInfo * FormatFactory::info | ( | const QString & | type | ) |
The documentation for this class was generated from the following files: