diff -r 90517678cc4f -r 453da2cfceef qtmobility/src/contacts/requests/qcontactsaverequest.cpp --- a/qtmobility/src/contacts/requests/qcontactsaverequest.cpp Mon May 03 13:18:40 2010 +0300 +++ b/qtmobility/src/contacts/requests/qcontactsaverequest.cpp Fri May 14 16:41:33 2010 +0300 @@ -57,12 +57,26 @@ \ingroup contacts-requests */ -/*! Constructs a new contact save request */ -QContactSaveRequest::QContactSaveRequest() - : QContactAbstractRequest(new QContactSaveRequestPrivate) +/*! Constructs a new contact save request whose parent is the specified \a parent */ +QContactSaveRequest::QContactSaveRequest(QObject* parent) + : QContactAbstractRequest(new QContactSaveRequestPrivate, parent) { } +/*! + Sets the contact to be saved to \a contact. + Equivalent to calling: + \code + setContacts(QList() << contact); + \endcode + */ +void QContactSaveRequest::setContact(const QContact& contact) +{ + Q_D(QContactSaveRequest); + d->m_contacts.clear(); + d->m_contacts.append(contact); +} + /*! Sets the list of contacts to be saved to \a contacts */ void QContactSaveRequest::setContacts(const QList& contacts) {