The QVersitResourceHandler class is an interface for clients wishing to implement custom behaviour for loading and saving files to disk when exporting and importing. More...
#include <QVersitResourceHandler>
Inherited by: QVersitDefaultResourceHandler.
This class was introduced in Qt Mobility 1.0.
virtual | ~QVersitResourceHandler () |
virtual bool | loadResource ( const QString & location, QByteArray * contents, QString * mimeType ) = 0 |
virtual bool | saveResource ( const QByteArray & contents, const QVersitProperty & property, QString * location ) = 0 |
The QVersitResourceHandler class is an interface for clients wishing to implement custom behaviour for loading and saving files to disk when exporting and importing.
See also QVersitContactImporter, QVersitContactExporter, and QVersitDefaultResourceHandler.
Frees any memory used by the handler.
Loads a file from location. *contents is filled with the contents of the file and *mimeType is set to the MIME type that it is determined to be. Returns true on success, false on failure.
Saves the binary data contents to a file on a persistent storage medium.
property holds the QVersitProperty which is the context in which the binary is coming from. The QVersitResourceHandler can use this, for example, to determine file extension it should choose. *location is filled with the contents of the file. Returns true on success, false on failure.
© 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.