![]() |
Home · All Classes · All Functions · | ![]() |
The QContactDetailDefinitionField class provides a field in a QContactDetail. More...
#include <QContactDetailDefinitionField>
enum | AccessConstraint { NoConstraint, ReadOnly } |
QContactDetailDefinitionField () | |
QContactDetailDefinitionField ( const QContactDetailDefinitionField & other ) | |
~QContactDetailDefinitionField () | |
QContactDetailDefinitionField::AccessConstraint | accessConstraint () const |
QVariantList | allowableValues () const |
QVariant::Type | dataType () const |
void | setAccessConstraint ( QContactDetailDefinitionField::AccessConstraint constraint ) |
void | setAllowableValues ( const QVariantList values ) |
void | setDataType ( QVariant::Type type ) |
bool | operator!= ( const QContactDetailDefinitionField & other ) const |
QContactDetailDefinitionField & | operator= ( const QContactDetailDefinitionField & other ) |
bool | operator== ( const QContactDetailDefinitionField & other ) const |
The QContactDetailDefinitionField class provides a field in a QContactDetail.
Encapsulates information about a particular datum which may be part of a QContactDetail, including the type, allowable values and access constraints.
This enum defines the access constraints which may be set on fields of a detail definition in the store for which the definition is valid. The constraint which applies to the definition takes precedence over a constraint which applies to a field of that definition. For example, if a field has the QContactDetailDefinitionField::NoConstraint constraint, but the detail definition from which the field came has either the QContactDetailDefinition::ReadOnly or QContactDetailDefinition::CreateOnly constraint, then the field will be a read-only field.
Constant | Value | Description |
---|---|---|
QContactDetailDefinitionField::NoConstraint | 0 | Fields with this access constraint set have no special access semantics associated with them. Users can read, write, and otherwise modify such fields in any manner. |
QContactDetailDefinitionField::ReadOnly | 1 | Fields with this access constraint set are dynamically modified by the backend. Users cannot write values to fields of details of definitions with this access constraint set. |
Constructs a new field with no constraints and an invalid data type.
Constructs a copy of the other field
Cleans up the memory in use by the field
Returns the access constraints which apply to this field
See also setAccessConstraint().
Returns the list of allowable values which this field may store
See also setAllowableValues().
Returns the data type of the field
See also setDataType().
Sets the access constraints which apply to this field to constraint
See also accessConstraint().
Sets the list of allowable values which this field may store to values
See also allowableValues().
Sets the data type of the field to type
See also dataType().
Returns true if the access constraint, allowable values or data type of the other field differ from those of this field
Assigns the field to be equal to the other field
Returns true if the access constraint, allowable values and data type of the other field are equal to those of this field
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 (Technical Preview) |