QVersitContactExporterDetailHandler Class
The QVersitContactExporterDetailHandler class is the legacy interface for clients wishing to implement custom export behaviour for certain contact details. More...
Header: | #include <QVersitContactExporterDetailHandler> |
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Public Functions
virtual | ~QVersitContactExporterDetailHandler() |
virtual bool | postProcessDetail(const QContact & contact, const QContactDetail & detail, bool alreadyProcessed, QVersitDocument * document) = 0 |
virtual bool | preProcessDetail(const QContact & contact, const QContactDetail & detail, QVersitDocument * document) = 0 |
Detailed Description
The QVersitContactExporterDetailHandler class is the legacy interface for clients wishing to implement custom export behaviour for certain contact details.
This interface is replaced by QVersitContactExporterDetailHandlerV2. For general information on extending Qt Versit, see the document on Qt Versit Plugins.
See also QVersitContactExporter.
Member Function Documentation
[virtual]
QVersitContactExporterDetailHandler::~QVersitContactExporterDetailHandler()
Frees any memory in use by this handler.
[pure virtual]
bool QVersitContactExporterDetailHandler::postProcessDetail(const QContact & contact, const QContactDetail & detail, bool alreadyProcessed, QVersitDocument * document)
Process detail and update document with the corresponding QVersitProperty(s). contact provides the context within which the detail was found. alreadyProcessed is true if the detail has already been processed either by preProcessDetail() or by QVersitContactExporter itself.
Returns true if the detail has been handled, false otherwise.
This function is called on every QContactDetail encountered during an export. This can be used to implement support for QContactDetails not supported by QVersitContactExporter.
[pure virtual]
bool QVersitContactExporterDetailHandler::preProcessDetail(const QContact & contact, const QContactDetail & detail, QVersitDocument * document)
Process detail and update document with the corresponding QVersitProperty(s). contact provides the context within which the detail was found.
Returns true if the detail has been handled and requires no further processing, false otherwise.
This function is called on every QContactDetail encountered during an export. Supply this function and return true to implement custom export behaviour.