kig
#include <filter.h>
Public Member Functions | |
KigFilter () | |
virtual | ~KigFilter () |
virtual KigDocument * | load (const QString &fromfile)=0 |
virtual bool | supportMime (const QString &mime) |
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 |
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().
Constructor & Destructor Documentation
Member Function Documentation
|
protected |
|
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 KigFilterNative, KigFilterCabri, KigFilterDrgeo, KigFilterKGeo, and KigFilterKSeg.
|
virtual |
can the filter handle the mimetype mime
?
Reimplemented in KigFilterNative, KigFilterCabri, KigFilterDrgeo, KigFilterKGeo, and KigFilterKSeg.
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.