kabc
#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:
Definition at line 94 of file formatfactory.h.
Constructor & Destructor Documentation
◆ ~FormatFactory()
FormatFactory::~FormatFactory | ( | ) |
Destructor.
Definition at line 113 of file formatfactory.cpp.
◆ FormatFactory()
|
protected |
Definition at line 80 of file formatfactory.cpp.
Member Function Documentation
◆ format()
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 145 of file formatfactory.cpp.
◆ formats()
QStringList FormatFactory::formats | ( | ) |
Returns a list of all available format types.
Definition at line 118 of file formatfactory.cpp.
◆ info()
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.
◆ self()
|
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.