QVersitProperty Class ReferenceThe QVersitProperty class stores the name, value, groups and parameters of a Versit property. More... #include <QVersitProperty> Public Types
Public Functions
Detailed DescriptionThe QVersitProperty class stores the name, value, groups and parameters of a Versit property. 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. QVersitProperty supports implicit sharing. The property name and parameters of a QVersitProperty are converted to upper-case when they are stored to a QVersitProperty. The value of a QVersitProperty is stored as a QVariant and should always be one of three types: QString for textual values, QByteArray for binary data (eg. images), or QVersitDocument for nested documents. The QVersitReader will parse Versit properties and assign the correct type of object to the property value. The QVersitWriter will serialise objects of these types correctly into the (text-based) Versit format. See also QVersitDocument. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QVersitProperty::PlainType | 0 | The property value holds an unstructured string and can be retrieved with QVersitProperty::value() |
QVersitProperty::CompoundType | 1 | The property value holds a compound string and can be retrieved with QVersitProperty::value<QStringList>() |
QVersitProperty::ListType | 2 | The property value holds a list of strings and can be retrieved with QVersitProperty::value<QStringList>() |
QVersitProperty::BinaryType | 3 | The property value holds a binary value and can be retrieved with QVersitProperty::value<QByteArray>() |
QVersitProperty::VersitDocumentType | 4 | The property value holds a nested Versit document and can be retrieved with QVersitProperty::value<QVersitDocument>() |
Constructs a new empty property
Constructs a property that is a copy of other
Frees the memory used by the property
Clears the contents of this property.
Gets the groups of the property.
See also setGroups().
Adds a new parameter with name and value. Both the name and the value are converted to upper-case.
Returns true if the property is empty.
Gets the name of the property in upper-case.
See also setName().
Return a copy of the contained list of parameters. Note that actual the parameters cannot be modified using the copy.
See also setParameters().
Removes a parameter with name and value.
See also removeParameters().
Removes all parameters with the given name.
See also removeParameter().
Sets the groups in the property to the given list of groups.
See also groups().
Sets the name of the property. The name is converted to upper-case.
See also name().
Replaces all the parameters with parameters. The parameters are converted to upper-case.
See also parameters().
Sets the property value to value.
See also value().
Sets the type of value held in the property to type.
See also valueType().
Returns the value of the property as a string if possible, otherwise return an empty string. If the property is stored as a QByteArray, it is decoded using the charset specified in the property's parameters.
See also setValue() and QVariant::toString().
This is an overloaded function.
Returns the value of the property as a T.
Returns the type of value held in the property.
See also setValueType().
Returns the value of the property.
Returns true if this is not equal to other; false otherwise.
Assigns this property to other
Returns true if this is equal to other; false otherwise.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.0 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com