kig
KigFilter Class Reference
#include <filter.h>

Detailed Description
This is the base class for an input filter.All the needed work to add a new input filter to Kig is subclassing this class and implement supportMime() and load().
Definition at line 68 of file filter.h.
Public Member Functions | |
| KigFilter () | |
| virtual KigDocument * | load (const QString &fromfile)=0 |
| virtual bool | supportMime (const QString &mime) |
| virtual | ~KigFilter () |
Protected Member Functions | |
| void | fileNotFound (const QString &file) const |
| void | notSupported (const QString &file, const QString &explanation) const |
| void | parseError (const QString &file, const QString &explanation=QString()) const |
| void | warning (const QString &explanation) const |
Constructor & Destructor Documentation
Member Function Documentation
| void KigFilter::fileNotFound | ( | const QString & | file | ) | const [protected] |
| virtual KigDocument* KigFilter::load | ( | const QString & | fromfile | ) | [pure virtual] |
load file fromfile and build a KigDocument from it.
. If this function returns 0, that means that an error occurred while loading ( implementations of this function are responsible for showing an error message themselves, using the above error functions ). If this functions returns non-0, the caller owns the returned KigDocument ( that was allocated with "new" ).
Implemented in KigFilterCabri, KigFilterDrgeo, KigFilterKGeo, KigFilterKSeg, and KigFilterNative.
| bool KigFilter::supportMime | ( | const QString & | mime | ) | [virtual] |
can the filter handle the mimetype mime ?
Reimplemented in KigFilterCabri, KigFilterDrgeo, KigFilterKGeo, KigFilterKSeg, and KigFilterNative.
| void KigFilter::warning | ( | const QString & | explanation | ) | const [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference