--- a/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.cpp Mon May 03 13:18:40 2010 +0300
+++ b/qtmobility/src/contacts/requests/qcontactrelationshipsaverequest.cpp Fri May 14 16:41:33 2010 +0300
@@ -57,12 +57,26 @@
\ingroup contacts-requests
*/
-/*! Constructs a new relationship save request */
-QContactRelationshipSaveRequest::QContactRelationshipSaveRequest()
- : QContactAbstractRequest(new QContactRelationshipSaveRequestPrivate)
+/*! Constructs a new relationship save request whose parent is the specified \a parent */
+QContactRelationshipSaveRequest::QContactRelationshipSaveRequest(QObject* parent)
+ : QContactAbstractRequest(new QContactRelationshipSaveRequestPrivate, parent)
{
}
+/*!
+ Sets the relationship to save to be \a contactRelationship.
+ Equivalent to calling:
+ \code
+ setRelationships(QList<QContactRelationship>() << contactRelationships);
+ \endcode
+ */
+void QContactRelationshipSaveRequest::setRelationship(const QContactRelationship& contactRelationship)
+{
+ Q_D(QContactRelationshipSaveRequest);
+ d->m_relationships.clear();
+ d->m_relationships.append(contactRelationship);
+}
+
/*! Sets the relationships to save to be \a contactRelationships */
void QContactRelationshipSaveRequest::setRelationships(const QList<QContactRelationship>& contactRelationships)
{