kabc
KABC::FormatFactory Class Reference
#include <formatfactory.h>
Public Member Functions | |
~FormatFactory () | |
Format * | format (const QString &type) |
QStringList | formats () |
FormatInfo | info (const QString &type) const |
Static Public Member Functions | |
static FormatFactory * | self () |
Detailed Description
Class for loading format plugins.
Example:
KABC::FormatFactory *factory = KABC::FormatFactory::self();
QStringList list = factory->formats();
// do something with format
}
Definition at line 94 of file formatfactory.h.
Constructor & Destructor Documentation
FormatFactory::~FormatFactory | ( | ) |
Destructor.
Definition at line 113 of file formatfactory.cpp.
Member Function Documentation
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 145 of file formatfactory.cpp.
QStringList FormatFactory::formats | ( | ) |
Returns a list of all available format types.
Definition at line 118 of file formatfactory.cpp.
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 136 of file formatfactory.cpp.
|
static |
Returns the global format factory.
Definition at line 68 of file formatfactory.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.