qtmobility/src/contacts/requests/qcontactdetaildefinitionfetchrequest.cpp
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 11 06b8e2af4411
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
    55   the overall operation error (which may be retrieved by calling error()) is updated.
    55   the overall operation error (which may be retrieved by calling error()) is updated.
    56 
    56 
    57   \ingroup contacts-requests
    57   \ingroup contacts-requests
    58  */
    58  */
    59 
    59 
    60 /*! Constructs a new detail definition fetch request */
    60 /*! Constructs a new detail definition fetch request whose parent is the specified \a parent */
    61 QContactDetailDefinitionFetchRequest::QContactDetailDefinitionFetchRequest()
    61 QContactDetailDefinitionFetchRequest::QContactDetailDefinitionFetchRequest(QObject* parent)
    62     : QContactAbstractRequest(new QContactDetailDefinitionFetchRequestPrivate)
    62     : QContactAbstractRequest(new QContactDetailDefinitionFetchRequestPrivate, parent)
    63 {
    63 {
       
    64 }
       
    65 
       
    66 /*! Sets the name of the detail definition to retrieve to \a definitionName.
       
    67     Equivalent to calling
       
    68     \code
       
    69         setDefinitionNames(QList<QContactDetailDefinition>() << definitionName);
       
    70     \endcode
       
    71  */
       
    72 void QContactDetailDefinitionFetchRequest::setDefinitionName(const QString& definitionName)
       
    73 {
       
    74     Q_D(QContactDetailDefinitionFetchRequest);
       
    75     d->m_names.clear();
       
    76     d->m_names.append(definitionName);
    64 }
    77 }
    65 
    78 
    66 /*! Sets the names of the detail definitions to retrieve to \a names */
    79 /*! Sets the names of the detail definitions to retrieve to \a names */
    67 void QContactDetailDefinitionFetchRequest::setDefinitionNames(const QStringList& names)
    80 void QContactDetailDefinitionFetchRequest::setDefinitionNames(const QStringList& names)
    68 {
    81 {