kabc
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::Format *format = factory->format( (*it) ); // do something with format }
Definition at line 95 of file formatfactory.h.
Public Member Functions | |
Format * | format (const QString &type) |
QStringList | formats () |
FormatInfo | info (const QString &type) const |
~FormatFactory () | |
Static Public Member Functions | |
static FormatFactory * | self () |
Constructor & Destructor Documentation
FormatFactory::~FormatFactory | ( | ) |
Member Function Documentation
Format * 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()
- See also:
- info()
Definition at line 144 of file formatfactory.cpp.
QStringList FormatFactory::formats | ( | ) |
FormatInfo FormatFactory::info | ( | const QString & | type | ) | const |
Returns the info structure for a special type.
- Parameters:
-
type The type of the format, returned by formats()
- See also:
- format()
Definition at line 135 of file formatfactory.cpp.
FormatFactory * FormatFactory::self | ( | ) | [static] |
The documentation for this class was generated from the following files: