Home · All Classes · All Functions ·

QVersitContactImporterPropertyHandler Class Reference

The QVersitContactImporterPropertyHandler class is an interface for clients wishing to implement custom import behaviour for versit properties More...

    #include <QVersitContactImporterPropertyHandler>

Public Functions

virtual ~QVersitContactImporterPropertyHandler ()
virtual bool postProcessProperty ( const QVersitDocument & document, const QVersitProperty & property, bool alreadyProcessed, int contactIndex, QContact * contact ) = 0
virtual bool preProcessProperty ( const QVersitDocument & document, const QVersitProperty & property, int contactIndex, QContact * contact ) = 0

Detailed Description

The QVersitContactImporterPropertyHandler class is an interface for clients wishing to implement custom import behaviour for versit properties

See also QVersitContactImporter.


Member Function Documentation

QVersitContactImporterPropertyHandler::~QVersitContactImporterPropertyHandler ()   [virtual]

Frees any memory in use by this handler.

bool QVersitContactImporterPropertyHandler::postProcessProperty ( const QVersitDocument & document, const QVersitProperty & property, bool alreadyProcessed, int contactIndex, QContact * contact )   [pure virtual]

Process property and update contact with the corresponding QContactDetail(s). document provides the context within which the property was found. contactIndex specifies the position that contact will take in the list returned by QVersitContactImporter::importDocuments(). alreadyProcessed is true if the detail has already been processed either by preProcessProperty() or by QVersitContactImporter itself.

Returns true if the property has been handled, false otherwise.

This function is called on every QVersitProperty encountered during an import. This can be used to implement support for QVersitProperties not supported by QVersitContactImporter.

bool QVersitContactImporterPropertyHandler::preProcessProperty ( const QVersitDocument & document, const QVersitProperty & property, int contactIndex, QContact * contact )   [pure virtual]

Process property and update contact with the corresponding QContactDetail(s). document provides the context within which the property was found. contactIndex specifies the position that contact will take in the list returned by QVersitContactImporter::importDocuments().

Returns true if the property has been handled and requires no further processing, false otherwise.

This function is called on every QVersitProperty encountered during an import. Supply this function and return true to implement custom import behaviour.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.2