![]() |
Home · All Classes · All Functions · | ![]() |
The QVersitDocument class is a container for a list of versit properties. More...
#include <QVersitDocument>
The QVersitDocument class is a container for a list of versit properties.
For example a vCard can be presented as a QVersitDocument that consists of a number of properties such as a name (N), a telephone number (TEL) and an email address (EMAIL) to name a few. Each of these properties is stored as an instance of a QVersitProperty in a QVersitDocument.
QVersitDocument supports implicit sharing.
See also QVersitProperty.
This enum describes a versit document type and version.
Constant | Value | Description |
---|---|---|
QVersitDocument::InvalidType | 0 | No type specified or a document with an invalid type was parsed |
QVersitDocument::VCard21Type | 1 | vCard version 2.1 |
QVersitDocument::VCard30Type | 2 | vCard version 3.0 |
Constructs a new empty document
Constructs a document that is a copy of other
Constructs a new empty document with the type set to type
Frees the memory used by the document
Add property to the list of contained versit properties. The property is appended as the last property of the list.
Clears the document, removing all properties and metadata and resetting the codec to the default.
Returns true if the document is empty.
Gets the list of the contained versit properties. Note that the actual properties cannot be modified using the copy.
Removes all the properties with the given name from the versit document.
Removes the property property from the versit document.
Sets the versit document type to type.
See also type().
Gets the versit document type.
See also setType().
Returns true if this is not equal to other; false otherwise.
Assigns this document to other
Returns true if this is equal to other; false otherwise.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |