qtmobility/src/contacts/qcontactdetaildefinition.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    55  */
    55  */
    56 
    56 
    57 /*!
    57 /*!
    58   \fn QContactDetailDefinition::operator!=(const QContactDetailDefinition& other) const
    58   \fn QContactDetailDefinition::operator!=(const QContactDetailDefinition& other) const
    59   Returns true if this detail definition has different allowable field types or uniqueness to the \a other definition
    59   Returns true if this detail definition has different allowable field types or uniqueness to the \a other definition
    60  */
       
    61 
       
    62 /*!
       
    63   \enum QContactDetailDefinition::AccessConstraint
       
    64 
       
    65   \obsolete
       
    66 
       
    67   This enum defines the access constraints which may be set on all details of this definition in the store for which the definition is valid.
       
    68 
       
    69   \value NoConstraint Details of definitions with this access constraint set have no special access semantics associated with them.  Users can read, write, and otherwise modify such details in any manner.
       
    70   \value ReadOnly Details of definitions with this access constraint set are dynamically modified by the backend.  Users cannot write values to details of definitions with this access constraint set.
       
    71   \value CreateOnly Details of definitions with this access constraint set are static once created.  Their value cannot be changed dynamically, nor can they be written or read by users.
       
    72  */
    60  */
    73 
    61 
    74 /*! Construct a new, invalid QContactDetailDefinition */
    62 /*! Construct a new, invalid QContactDetailDefinition */
    75 QContactDetailDefinition::QContactDetailDefinition()
    63 QContactDetailDefinition::QContactDetailDefinition()
    76     : d(new QContactDetailDefinitionData)
    64     : d(new QContactDetailDefinitionData)
   168 void QContactDetailDefinition::removeField(const QString& key)
   156 void QContactDetailDefinition::removeField(const QString& key)
   169 {
   157 {
   170     d->m_fields.remove(key);
   158     d->m_fields.remove(key);
   171 }
   159 }
   172 
   160 
   173 /*!
       
   174   Returns the access constraint that is applied to details of this definition
       
   175 
       
   176   \obsolete
       
   177 
       
   178   This function is obsolete - use \l QContactDetail::accessConstraints()
       
   179  */
       
   180 QContactDetailDefinition::AccessConstraint QContactDetailDefinition::accessConstraint() const
       
   181 {
       
   182     return QContactDetailDefinition::NoConstraint;
       
   183 }
       
   184 
       
   185 /*!
       
   186   Sets the access constraint that is applied to details of this definition to \a constraint
       
   187 
       
   188   \obsolete
       
   189 
       
   190   This function is obsolete.
       
   191  */
       
   192 void QContactDetailDefinition::setAccessConstraint(const QContactDetailDefinition::AccessConstraint& constraint)
       
   193 {
       
   194     Q_UNUSED(constraint);
       
   195 }
       
   196 
       
   197 QTM_END_NAMESPACE
   161 QTM_END_NAMESPACE