equal
deleted
inserted
replaced
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 relationship save request */ |
60 /*! Constructs a new relationship save request whose parent is the specified \a parent */ |
61 QContactRelationshipSaveRequest::QContactRelationshipSaveRequest() |
61 QContactRelationshipSaveRequest::QContactRelationshipSaveRequest(QObject* parent) |
62 : QContactAbstractRequest(new QContactRelationshipSaveRequestPrivate) |
62 : QContactAbstractRequest(new QContactRelationshipSaveRequestPrivate, parent) |
63 { |
63 { |
|
64 } |
|
65 |
|
66 /*! |
|
67 Sets the relationship to save to be \a contactRelationship. |
|
68 Equivalent to calling: |
|
69 \code |
|
70 setRelationships(QList<QContactRelationship>() << contactRelationships); |
|
71 \endcode |
|
72 */ |
|
73 void QContactRelationshipSaveRequest::setRelationship(const QContactRelationship& contactRelationship) |
|
74 { |
|
75 Q_D(QContactRelationshipSaveRequest); |
|
76 d->m_relationships.clear(); |
|
77 d->m_relationships.append(contactRelationship); |
64 } |
78 } |
65 |
79 |
66 /*! Sets the relationships to save to be \a contactRelationships */ |
80 /*! Sets the relationships to save to be \a contactRelationships */ |
67 void QContactRelationshipSaveRequest::setRelationships(const QList<QContactRelationship>& contactRelationships) |
81 void QContactRelationshipSaveRequest::setRelationships(const QList<QContactRelationship>& contactRelationships) |
68 { |
82 { |