qtmobility/src/contacts/qcontactdetailfielddefinition.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    48   \class QContactDetailFieldDefinition
    48   \class QContactDetailFieldDefinition
    49   \brief The QContactDetailFieldDefinition class provides a field in a QContactDetail.
    49   \brief The QContactDetailFieldDefinition class provides a field in a QContactDetail.
    50  
    50  
    51   Encapsulates information about a particular datum which may be part of a
    51   Encapsulates information about a particular datum which may be part of a
    52   QContactDetail, including the type, allowable values and access constraints.
    52   QContactDetail, including the type, allowable values and access constraints.
    53  */
       
    54 
       
    55 /*!
       
    56  * \enum QContactDetailFieldDefinition::AccessConstraint
       
    57  *
       
    58  * \obsolete
       
    59  *
       
    60  * 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.
       
    61  * The constraint which applies to the definition takes precedence over a constraint which applies to a field of that definition.
       
    62  * For example, if a field has the \c QContactDetailFieldDefinition::NoConstraint constraint, but the detail definition from which the field came has
       
    63  * either the \c QContactDetailDefinition::ReadOnly or \c QContactDetailDefinition::CreateOnly constraint, then the field will be a read-only field.
       
    64  *
       
    65  * \value NoConstraint 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.
       
    66  * \value ReadOnly 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.
       
    67  */
    53  */
    68 
    54 
    69 /*!
    55 /*!
    70  * Constructs a new field with no constraints and an invalid data type.
    56  * Constructs a new field with no constraints and an invalid data type.
    71  */
    57  */
   129 {
   115 {
   130     d->m_allowableValues = values;
   116     d->m_allowableValues = values;
   131 }
   117 }
   132 
   118 
   133 /*!
   119 /*!
   134  * Returns the access constraints which apply to this field
       
   135  *
       
   136  * \obsolete
       
   137  * Obsolete - use \l QContactDetail::accessConstraints() instead.
       
   138  */
       
   139 QContactDetailFieldDefinition::AccessConstraint QContactDetailFieldDefinition::accessConstraint() const
       
   140 {
       
   141     return QContactDetailFieldDefinition::NoConstraint;
       
   142 }
       
   143 
       
   144 /*!
       
   145  * Sets the access constraints which apply to this field to \a constraint
       
   146  *
       
   147  * \obsolete
       
   148  *
       
   149  * This is no longer used.
       
   150  */
       
   151 void QContactDetailFieldDefinition::setAccessConstraint(QContactDetailFieldDefinition::AccessConstraint constraint)
       
   152 {
       
   153     Q_UNUSED(constraint);
       
   154 }
       
   155 
       
   156 /*!
       
   157  * Returns true if the allowable values and data type of the \a other field are equal to those of this field
   120  * Returns true if the allowable values and data type of the \a other field are equal to those of this field
   158  */
   121  */
   159 bool QContactDetailFieldDefinition::operator==(const QContactDetailFieldDefinition& other) const
   122 bool QContactDetailFieldDefinition::operator==(const QContactDetailFieldDefinition& other) const
   160 {
   123 {
   161     if (d->m_allowableValues != other.d->m_allowableValues)
   124     if (d->m_allowableValues != other.d->m_allowableValues)