Inherit this class to implement a custom saver for KLFAbstractPropertizedObjects. More...
#include <klfdatautil.h>
Public Member Functions | |
KLFAbstractPropertizedObjectSaver () | |
virtual | ~KLFAbstractPropertizedObjectSaver () |
virtual QStringList | supportedTypes () const =0 |
virtual QString | recognizeDataFormat (const QByteArray &data) const =0 |
virtual QByteArray | save (const KLFAbstractPropertizedObject *obj, const QString &format)=0 |
virtual bool | load (const QByteArray &data, KLFAbstractPropertizedObject *obj, const QString &format)=0 |
Static Public Member Functions | |
static KLFAbstractPropertizedObjectSaver * | findRecognizedFormat (const QByteArray &data, QString *format=NULL) |
static KLFAbstractPropertizedObjectSaver * | findSaverFor (const QString &format) |
Inherit this class to implement a custom saver for KLFAbstractPropertizedObjects.
Definition at line 123 of file klfdatautil.h.
Definition at line 1595 of file klfdatautil.cpp.
Definition at line 1599 of file klfdatautil.cpp.
KLFAbstractPropertizedObjectSaver * KLFAbstractPropertizedObjectSaver::findRecognizedFormat | ( | const QByteArray & | data, |
QString * | format = NULL |
||
) | [static] |
Definition at line 1608 of file klfdatautil.cpp.
References recognizeDataFormat(), and KLFFactoryManager::registeredFactories().
Referenced by klfLoad().
KLFAbstractPropertizedObjectSaver * KLFAbstractPropertizedObjectSaver::findSaverFor | ( | const QString & | format | ) | [static] |
Definition at line 1629 of file klfdatautil.cpp.
References KLFFactoryManager::findFactoryFor().
virtual bool KLFAbstractPropertizedObjectSaver::load | ( | const QByteArray & | data, |
KLFAbstractPropertizedObject * | obj, | ||
const QString & | format | ||
) | [pure virtual] |
Referenced by klfLoad().
virtual QString KLFAbstractPropertizedObjectSaver::recognizeDataFormat | ( | const QByteArray & | data | ) | const [pure virtual] |
Referenced by findRecognizedFormat().
virtual QByteArray KLFAbstractPropertizedObjectSaver::save | ( | const KLFAbstractPropertizedObject * | obj, |
const QString & | format | ||
) | [pure virtual] |
Referenced by klfSave().
virtual QStringList KLFAbstractPropertizedObjectSaver::supportedTypes | ( | ) | const [pure virtual] |
Implements KLFFactoryBase.