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();
QStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
  // 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
| 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.
| 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
            Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference