Home · All Classes · All Functions ·

QContactDetailDefinitionField Class Reference

The QContactDetailDefinitionField class provides a field in a QContactDetail. More...

    #include <QContactDetailDefinitionField>

Public Types

enum AccessConstraint { NoConstraint, ReadOnly }

Public Functions

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

Detailed Description

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.


Member Type Documentation

enum QContactDetailDefinitionField::AccessConstraint

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.

ConstantValueDescription
QContactDetailDefinitionField::NoConstraint0Fields 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::ReadOnly1Fields 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.


Member Function Documentation

QContactDetailDefinitionField::QContactDetailDefinitionField ()

Constructs a new field with no constraints and an invalid data type.

QContactDetailDefinitionField::QContactDetailDefinitionField ( const QContactDetailDefinitionField & other )

Constructs a copy of the other field

QContactDetailDefinitionField::~QContactDetailDefinitionField ()

Cleans up the memory in use by the field

QContactDetailDefinitionField::AccessConstraint QContactDetailDefinitionField::accessConstraint () const

Returns the access constraints which apply to this field

See also setAccessConstraint().

QVariantList QContactDetailDefinitionField::allowableValues () const

Returns the list of allowable values which this field may store

See also setAllowableValues().

QVariant::Type QContactDetailDefinitionField::dataType () const

Returns the data type of the field

See also setDataType().

void QContactDetailDefinitionField::setAccessConstraint ( QContactDetailDefinitionField::AccessConstraint constraint )

Sets the access constraints which apply to this field to constraint

See also accessConstraint().

void QContactDetailDefinitionField::setAllowableValues ( const QVariantList values )

Sets the list of allowable values which this field may store to values

See also allowableValues().

void QContactDetailDefinitionField::setDataType ( QVariant::Type type )

Sets the data type of the field to type

See also dataType().

bool QContactDetailDefinitionField::operator!= ( const QContactDetailDefinitionField & other ) const

Returns true if the access constraint, allowable values or data type of the other field differ from those of this field

QContactDetailDefinitionField & QContactDetailDefinitionField::operator= ( const QContactDetailDefinitionField & other )

Assigns the field to be equal to the other field

bool QContactDetailDefinitionField::operator== ( const QContactDetailDefinitionField & other ) const

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)