The QVersitContactImporterPropertyHandlerV2 class is an interface for specifying custom import behaviour for vCard properties. More...
#include <QVersitContactImporterPropertyHandlerV2>
Inherited by: QVersitContactHandler.
virtual | ~QVersitContactImporterPropertyHandlerV2 () |
virtual void | documentProcessed ( const QVersitDocument & document, QContact * contact ) = 0 |
virtual void | propertyProcessed ( const QVersitDocument & document, const QVersitProperty & property, const QContact & contact, bool * alreadyProcessed, QList<QContactDetail> * updatedDetails ) = 0 |
The QVersitContactImporterPropertyHandlerV2 class is an interface for specifying custom import behaviour for vCard properties.
This interface supercedes QVersitContactImporterPropertyHandler. For general information on extending Qt Versit, see the document on Versit Plugins.
See also QVersitContactImporter.
Frees any memory in use by this handler.
Perform any final processing on the contact generated by the document. This can be implemented by the handler to clear any internal state before moving onto the next document.
This function is called after all QVersitProperties have been handled by the QVersitContactImporter.
Process property and provide a list of updated details by adding them to updatedDetails.
This function is called on every QVersitProperty encountered during an import, after the property has been processed by the QVersitContactImporter. An implementation of this function can be made to provide support for vCard properties not supported by QVersitContactImporter.
The supplied document is the container for the property. alreadyProcessed is true if the QVersitContactImporter or another handler was successful in processing the property. If it is false and the handler processes the property, it should be set to true to inform later handlers that the property requires no further processing. contact holds the state of the contact before the property was processed by the importer. updatedDetails is initially filled with a list of details that the importer will update, and can be modified (by removing, modifying or adding details to the list)
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.