qtmobility/src/contacts/requests/qcontactsaverequest.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 contact save request */
    60 /*! Constructs a new contact save request whose parent is the specified \a parent */
    61 QContactSaveRequest::QContactSaveRequest()
    61 QContactSaveRequest::QContactSaveRequest(QObject* parent)
    62     : QContactAbstractRequest(new QContactSaveRequestPrivate)
    62     : QContactAbstractRequest(new QContactSaveRequestPrivate, parent)
    63 {
    63 {
       
    64 }
       
    65 
       
    66 /*!
       
    67   Sets the contact to be saved to \a contact.
       
    68   Equivalent to calling:
       
    69   \code
       
    70       setContacts(QList<QContact>() << contact);
       
    71   \endcode
       
    72  */
       
    73 void QContactSaveRequest::setContact(const QContact& contact)
       
    74 {
       
    75     Q_D(QContactSaveRequest);
       
    76     d->m_contacts.clear();
       
    77     d->m_contacts.append(contact);
    64 }
    78 }
    65 
    79 
    66 /*! Sets the list of contacts to be saved to \a contacts */
    80 /*! Sets the list of contacts to be saved to \a contacts */
    67 void QContactSaveRequest::setContacts(const QList<QContact>& contacts)
    81 void QContactSaveRequest::setContacts(const QList<QContact>& contacts)
    68 {
    82 {