TDEABC::FormatFactory Class Reference
#include <formatfactory.h>
Public Member Functions | |
~FormatFactory () | |
FormatPlugin * | format (const TQString &type) |
TQStringList | formats () |
FormatInfo * | info (const TQString &type) |
Static Public Member Functions | |
static FormatFactory * | self () |
Detailed Description
Class for loading format plugins.
Example:
TDEABC::FormatFactory *factory = TDEABC::FormatFactory::self();
TQStringList list = factory->formats();
TQStringList::Iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
// do something with format
}
FormatPlugin * format(const TQString &type)
Returns a pointer to a format object or a null pointer if format type doesn't exist.
Definition: formatfactory.cpp:109
Definition at line 57 of file formatfactory.h.
Constructor & Destructor Documentation
◆ ~FormatFactory()
FormatFactory::~FormatFactory | ( | ) |
Destructor.
Definition at line 81 of file formatfactory.cpp.
Member Function Documentation
◆ format()
FormatPlugin * FormatFactory::format | ( | const TQString & | 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.
◆ formats()
TQStringList FormatFactory::formats | ( | ) |
Returns a list of all available format types.
Definition at line 86 of file formatfactory.cpp.
◆ info()
FormatInfo * FormatFactory::info | ( | const TQString & | type | ) |
Returns the info structure for a special type.
Definition at line 101 of file formatfactory.cpp.
◆ self()
|
static |
Returns the global format factory.
Definition at line 38 of file formatfactory.cpp.
The documentation for this class was generated from the following files: